Dynamic IP to Multiple Hostnames Updates

Discussion in 'Installation/Configuration' started by E.L. Hibee, Jun 15, 2006.

  1. E.L. Hibee

    E.L. Hibee New Member

    Hi

    Had a look around and cant see anything to help so here goes:

    I have a suse10.1 server with ISPConfig and I am looking to hold multiple web sites on it (currently 4 but looking to increase).

    I have a provider who issues dynamic IPs'.

    I am wanting to create a seperate client for each in ISPConfig.

    For the single site I have running at the moment I have the URL pointing towards a dyndns dynamic host name which then points to my router, this hostname is updated with the new IP address automatically by the router.

    Now here comes the problem my router will only allow automatic update to 1 hostname with the new IP address. The problem occurs that if I want 5 sites then I will need 5 hostnames to be updated.

    I know that you can get an application for windows to allow you to update multiple hostnames at once, but this means having a desktop or laptop with windows on permanently to carry out this update which is not feasable. Is there a program that I can run on my server to automatically update each hostname?

    Hope that makes sense?

    Thanks
     
  2. falko

    falko Super Moderator Howtoforge Staff

    You can make your additional domains CNAMEs of your dyndns domain.
     
  3. E.L. Hibee

    E.L. Hibee New Member

    Hi

    The issue I have is that I am working with 4 webs sites but only testing with 2. I am pointing www.domain1.co.uk to hostname.dyndns.org and this works fine however when I point www.domain2.co.uk to hostname.dyndns.org I get a 403 Forbidden error message.

    So I was thinking that it may be to do with them both pointing to the same hostname.dyndns.org so was going to create seperate dyndns name for each but if I did this then I would need a program to update each name with my dynamic IP address. would this work?

    However I have also had another thought, both website areas that I have created in ISPConfig are both on server 192.168.0.183, do they have to be created on seperate servers for this to work? If so in order to do this I assume I will have to create multiple IP addresses on the 1 NIC card? Would this work even though both domains are still pointing to the same dynsdns hostname?

    dydns does not allow me to set up Cname records.

    I think I have just confused myself now. :confused:
     
    Last edited: Jun 15, 2006
  4. falko

    falko Super Moderator Howtoforge Staff

    You cannot use multiple IP addresses because you can forward port 80 to only one IP address from your router.

    Can you post your real domain names here?
     
  5. E.L. Hibee

    E.L. Hibee New Member

    3 of the domains that I currently use are:

    http://www.thebigman.co.uk/
    http://www.nocompclothing.co.uk/
    http://www.domesticpunx.co.uk/

    The second 2 domains are web forwarded:

    http://www.nocompclothing.co.uk/ --> http://www.thebigman.co.uk/nocomp
    http://www.domesticpunx.co.uk/ --> http://www.thebigman.co.uk/domesticpunx

    my current dyndns is: http://elldickson.dyndns.org

    I could still use the same file structuring etc on the new server and simply point http://www.thebigman.co.uk/ to http://elldickson.dyndns.org and it would work ok.

    However the 2nd and 3rd domain are sites of friends and I am looking to make them resellers as they want to add more sites and try amd use ISPConfig to its full.

    Does that make sense?
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Ok, all three domains are currently A records:
    Code:
    mh1:~# dig www.thebigman.co.uk
    
    ; <<>> DiG 9.2.1 <<>> www.thebigman.co.uk
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37827
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;www.thebigman.co.uk.           IN      A
    
    ;; ANSWER SECTION:
    [B][COLOR="Red"]www.thebigman.co.uk.    3600    IN      A       82.110.105.12[/COLOR][/B]
    
    ;; Query time: 103 msec
    ;; SERVER: 81.169.163.104#53(81.169.163.104)
    ;; WHEN: Fri Jun 16 02:53:24 2006
    ;; MSG SIZE  rcvd: 53
    
    mh1:~# dig www.nocompclothing.co.uk
    
    ; <<>> DiG 9.2.1 <<>> www.nocompclothing.co.uk
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15281
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;www.nocompclothing.co.uk.      IN      A
    
    ;; ANSWER SECTION:
    [B][COLOR="Red"]www.nocompclothing.co.uk. 86400 IN      A       194.154.164.82[/COLOR][/B]
    
    ;; Query time: 80 msec
    ;; SERVER: 81.169.163.104#53(81.169.163.104)
    ;; WHEN: Fri Jun 16 02:53:36 2006
    ;; MSG SIZE  rcvd: 58
    
    mh1:~# dig www.domesticpunx.co.uk
    
    ; <<>> DiG 9.2.1 <<>> www.domesticpunx.co.uk
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17271
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;www.domesticpunx.co.uk.                IN      A
    
    ;; ANSWER SECTION:
    [B][COLOR="Red"]www.domesticpunx.co.uk. 86400   IN      A       194.154.164.82[/COLOR][/B]
    
    ;; Query time: 165 msec
    ;; SERVER: 81.169.163.104#53(81.169.163.104)
    ;; WHEN: Fri Jun 16 02:53:55 2006
    ;; MSG SIZE  rcvd: 56
    Make them CNAME records of elldickson.dyndns.org instead. Have a look here: http://www.howtoforge.com/traditional_dns_howto to understand what CNAMEs are.
     
  7. admire

    admire New Member

    Isn't there a linux-version of the dyndns client aviable?
    I remember I had such a client on my box sometime, but not 100% sure that was dyndns, it may have been some other dynamic dns service. :\
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

  9. falko

    falko Super Moderator Howtoforge Staff

    I used ddclient some years ago, and I liked it. :)
     

Share This Page