Results 1 to 8 of 8

Thread: Local DNS

  1. #1
    Join Date
    Apr 2011
    Location
    Blackpool, UK.
    Beans
    122
    Distro
    Ubuntu 11.04 Natty Narwhal

    Local DNS

    Hi folks - confused.com here... I've looked and looked for the answer and just getting more confused.

    Right then...

    Ubuntu server setup, wordpress setup for the intranet, accesable via 192.168.1.101/wordpress and by editing hosts file on main computers - pegasus.chm/wordpress - all working perfectly.

    However, this is where I'm lost - want to setup so that 192.168.251.101 has a name assigned to it on the netwrok automatically, without having to edit all the companies computers host files - name to be pegaus.chm

    1. Can i do this via the router (crap one from talktalk)
    2. setup via a dns server on the server (if so, help).
    3. or just buy a domain name and pouint it to our systic ip.

    Any help really appreciated.

  2. #2
    Join Date
    Apr 2011
    Location
    Blackpool, UK.
    Beans
    122
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Local DNA

    Ok doh! Local DNS I mean !

  3. #3
    Join Date
    Sep 2006
    Location
    France.
    Beans
    Hidden!
    Distro
    Ubuntu Mate Development Release

    Re: Local DNS

    Edited your thread title
    | My old and mostly abandoned blog |
    Linux user #413984 ; Ubuntu user #178
    J'aime les fraises.
    Nighty night me lovelies!

    | Reinstalling Ubuntu ? Please check this bug first ! |
    | Using a ppa ? Please install ppa-purge from universe, you may need it should you want to revert packages back |
    | No support requests / username changes by PM, thanks. |

  4. #4
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    9,572
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Local DNS

    Most routers can act as a DNS server. Look and see whether you can add names to its hosts table, then make sure the router's address is given to network clients during the DHCP exchange. It's generally a lot easier to reconfigure your router than to set up a local DNS server. I'm assuming you've assigned the Wordpress machine a static IP address, so it doesn't already appear in the router's hosts table.

    If you're using DHCP with an IP "reservation" for the server, then you can ensure that the router get a specific name for your server by editing the file /etc/dhcp/dhclient.conf. By default the DHCP client uses the contents of /etc/hostname via the get_hostname() operating system call. However you can enforce a specific hostname during the DHCP negotiation by changing
    Code:
    send host-name = gethostname();
    to
    Code:
    send host-name = pegasus
    You might need to enforce the .chm domain on the router, though you can try using
    Code:
    send host-name = pegasus.chm
    and see if that works.

    If you don't have control over the "talktalk" router, I suggest buying a router with support for dd-wrt and placing it behind the talktalk device.
    Last edited by SeijiSensei; March 31st, 2014 at 07:06 PM.
    If you ask for help, please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  5. #5
    Join Date
    Apr 2011
    Location
    Blackpool, UK.
    Beans
    122
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Local DNS

    Thanks

  6. #6
    Join Date
    Apr 2011
    Location
    Blackpool, UK.
    Beans
    122
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Local DNS

    Hi brilliant many thanks - yep router is a bit pants, technicolor - time to upgrade i think.

  7. #7
    Join Date
    Sep 2006
    Location
    France.
    Beans
    Hidden!
    Distro
    Ubuntu Mate Development Release

    Re: Local DNS

    Do I understand your issue is solved ? Please mark the thread as such (under Thread Tools menu), thanks.
    | My old and mostly abandoned blog |
    Linux user #413984 ; Ubuntu user #178
    J'aime les fraises.
    Nighty night me lovelies!

    | Reinstalling Ubuntu ? Please check this bug first ! |
    | Using a ppa ? Please install ppa-purge from universe, you may need it should you want to revert packages back |
    | No support requests / username changes by PM, thanks. |

  8. #8
    Join Date
    Apr 2011
    Location
    Blackpool, UK.
    Beans
    122
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Local DNS

    Maybe not yet ---- working in it. A soon as sorted will put a synopsis for others.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •