Results 1 to 4 of 4

Thread: add a host record to Ubuntu DNS server

  1. #1
    Join Date
    Sep 2012
    Beans
    3

    add a host record to Ubuntu DNS server

    I'm new to Ubuntu,

    We have a DNS server running v11.10 that has been in place since before I started.

    What is the easiest way to add a host record for a new email server?
    mailserver.xxxxxxxxx.com 68.58.201.xx

    is there a file(s) I can edit or a utility I should use?

    thanks

  2. #2
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    22,041
    Distro
    Ubuntu 15.10 Wily Werewolf

    Re: Need to add a host record to Ubuntu DNS server

    I imagine it's /etc/hosts, however, I believe the correct syntax will be like:
    127.0.0.1 localhost
    127.0.1.1 myserver

    68.58.201.xx mailserver.xxxxxxxxx.com

    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    Last edited by chili555; March 21st, 2013 at 03:15 PM.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

  3. #3
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    2,113
    Distro
    Ubuntu Development Release

    Re: Need to add a host record to Ubuntu DNS server

    If it is an externally facing domain name server, then there should be two. (?)
    When you say DNS, do you mean you are running bind9? Or something else? I run an internal only bind9, and I can check via:
    Code:
    doug@doug-64:~$ ps aux | grep named
    doug       366  0.0  0.0   9380   884 pts/1    S+   07:43   0:00 grep --color=auto named
    bind     30381  0.0  0.8 248304 26340 ?        Ssl  Mar20   0:04 /usr/sbin/named -u bind
    Now, if it is bind9 that you are running, then the related files will be in /etc/bind. And some help for modifying the files can be found in the Ubuntu server guide. (Even though you mentioned version 11.10, the link is to the 12.10 version of the guide because of some fixes to the DNS chapter that were made since 11.10)
    Last edited by Doug S; March 21st, 2013 at 03:55 PM.
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

  4. #4
    Join Date
    Sep 2012
    Beans
    3

    Re: Need to add a host record to Ubuntu DNS server

    Quote Originally Posted by Doug S View Post
    If it is an externally facing domain name server, then there should be two. (?)
    When you say DNS, do you mean you are running bind9? Or something else? I run an internal only bind9, and I can check via:
    Code:
    doug@doug-64:~$ ps aux | grep named
    doug       366  0.0  0.0   9380   884 pts/1    S+   07:43   0:00 grep --color=auto named
    bind     30381  0.0  0.8 248304 26340 ?        Ssl  Mar20   0:04 /usr/sbin/named -u bind
    Now, if it is bind9 that you are running, then the related files will be in /etc/bind. And some help for modifying the files can be found in the Ubuntu server guide. (Even though you mentioned version 11.10, the link is to the 12.10 version of the guide because of some fixes to the DNS chapter that were made since 11.10)
    yes, externally facing and there is two.

    i'm assuming bind9 and looking at the files in the /etc/bind folder, but I can see nothing in those files that show the current web or mail server.

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
  •