Page 4 of 16 FirstFirst ... 2345614 ... LastLast
Results 31 to 40 of 152

Thread: Howto: Setup a DNS server with bind

  1. #31
    Join Date
    Jan 2006
    Location
    Toronto
    Beans
    21
    Distro
    Ubuntu Breezy 5.10

    Re: Howto: Setup a DNS server with bind

    Hi,

    Thank you for the tutorial, it worked great.
    So now I have my

    ns1.xxxx.com
    ns2.xxxx.com

    I want to set up another domain say abc.com to use my new DNS servers. I went through the process of registering the domain, setting the DNS servers to the above from GoDaddy, set up a new virtual host in apache, etc..

    My quesiton is, how do I add another domain to my bind configuration?
    I'd post what I did so far, but that might just confuse others.
    Can you post a general example about what needs to be added in the bind?

    Any help would be appreciated..
    Thanks
    George

  2. #32
    Join Date
    Feb 2007
    Beans
    21

    Re: Howto: Setup a DNS server with bind

    Quote Originally Posted by whtet View Post
    I still needs to troubleshoot why 'dig hostname' is not working while 'ping hostname' is working.
    I've experienced this intermittently. Most of the time I can ping internal hostnames, but sometimes, some of them just don't work. Then I'll come back later in the day and suddenly they do work.

    This is the same basic problem as I'm having with resolving internal hostnames within Firefox on XP. Sometimes they work, sometimes they don't. If it doesn't work in Firefox, then ping will also be broken, so these issues share the same root cause.

    Thank you phormion for the link to dig for Windows. Here's the output I see for dig and nslookup. I no longer get the timeout for nslookup (and I'm not sure how I fixed that), but the basic problem still remains.

    Code:
    dig zencartdemo.dev
    
    ; <<>> DiG 9.4.0 <<>> zencartdemo.dev
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 899
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;zencartdemo.dev.               IN      A
    
    ;; ANSWER SECTION:
    zencartdemo.dev.        38400   IN      A       192.168.1.10
    
    ;; AUTHORITY SECTION:
    dev.                    38400   IN      NS      dev.
    
    ;; Query time: 0 msec
    ;; SERVER: 192.168.1.10#53(192.168.1.10)
    ;; WHEN: Mon Mar 26 12:54:58 2007
    ;; MSG SIZE  rcvd: 63
    Code:
    nslookup zencartdemo.dev
    
    Server:         192.168.1.10
    Address:        192.168.1.10#53
    
    Name:   zencartdemo.dev
    Address: 192.168.1.10

  3. #33
    Join Date
    Apr 2007
    Beans
    1

    Re: Howto: Setup a DNS server with bind

    tomtom_in_eire great tutorial, worked well for me.

    Hope you don't mind, I copied your post to the ubuntu wiki manual at http://http://ubuntuguide.org/wiki/U...IND_DNS_Server

  4. #34
    Join Date
    Apr 2007
    Beans
    2
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Howto: Setup a DNS server with bind

    I'm having a similar problem to CopaceticOpus. Name resolution works great when browsing locally from the bind server, but clients on the local network can rarely perform successful lookups. Sometimes it works, sometimes it doesn't. This is the case for both local and global DNS entries. It almost looks like a network connectivity issue, however communication via IP rather than DNS works great all the time. I've looked at my firewall logs (and disabled) - it doesn't seem to be an issue there. I can also consistently telnet into the bind port from a remote machine, even though the actual lookups fail with a timeout.

  5. #35
    Join Date
    Apr 2007
    Beans
    2
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Howto: Setup a DNS server with bind

    It was in fact a firewall problem. Everything is working well now...

  6. #36
    Join Date
    Apr 2006
    Location
    Abbottabad, Pakistan
    Beans
    3

    Angry Re: Howto: Setup a DNS server with bind

    hmmm .. all this is helpful .. but wot i was looking for is

    i have a local network or more than 500 computers. working with out any domain or central control.

    I am running a windows base DHCP to serve the IP address to clients. now i want to setup a dns server Ubuntu based , to keep track of the naming of all the computers.


    regard,


    nasir aziz awan.

  7. #37
    Join Date
    May 2007
    Location
    Alajuela, Costa Rica
    Beans
    5
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Howto: Setup a DNS server with bind

    GREAT Tutorial It works fine fne i!! Thank's a lot. BTW I'm using Feisty Fawn. All Perfect.

  8. #38
    Join Date
    May 2007
    Location
    Alajuela, Costa Rica
    Beans
    5
    Distro
    Ubuntu 7.04 Feisty Fawn

    Post Re: Howto: Setup a DNS server with bind

    Quote Originally Posted by Coogan View Post
    I'm getting this error when trying to start Bind:

    Code:
    Nov 21 21:59:47 localhost named[10645]: starting BIND 9.3.2 -u bind
    Nov 21 21:59:47 localhost named[10645]: found 1 CPU, using 1 worker thread
    Nov 21 21:59:47 localhost named[10645]: loading configuration from '/etc/bind/named.conf'
    Nov 21 21:59:47 localhost named[10645]: /etc/bind/named.conf:55: unknown option 'forwarders'
    Nov 21 21:59:47 localhost named[10645]: loading configuration: failure
    Nov 21 21:59:47 localhost named[10645]: exiting (due to fatal error)
    Here's the forwarders part in named.conf:

    Code:
    forwarders {
      205.152.37.23;
      };
    Any idea what I'm doing wrong? I'm trying to set up an DNS server that'll act as a local cache (Bellsouth's DNS kinda sucks) and so I set up a few internal websites and servers.

    Coog
    Well, firts of all

    You should change the location of the option 'forwarders' into the file 'named.conf.options'
    and remove it from the 'named.conf' file.

    This because in the named.conf file there is an include section for the 'named.conf.options' file so maybe the problem is around there. And if there is not the include. here's an example:

    Code:
    include "/etc/bind/named.conf.options";
    Hope it works. Any questions or corrections are welcome.

  9. #39
    Join Date
    Jan 2007
    Location
    Omaha, Nebraska USA
    Beans
    25
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Howto: Setup a DNS server with bind

    I tried to use this tutorial to build an internal (not internet exposed) dns server on fiesty ubunt-server and it's been a struggle. bind9 loads, but is not functional. The named-checkconf is spitting out all kinds of errors.

    Code:
    zone localhost/IN: loaded serial 1
    zone 127.in-addr.arpa/IN: loaded serial 1
    zone 0.in-addr.arpa/IN: loaded serial 1
    zone 255.in-addr.arpa/IN: loaded serial 1
    dns_rdata_fromtext: /etc/bind/zones/dthacker.org.db:6: near 'dthacker.org.': syntax error
    zone dthacker.org/IN: loading master file /etc/bind/zones/dthacker.org.db: syntax error
    _default/dthacker.org/IN: syntax error
    dns_rdata_fromtext: /etc/bind/zones/rev.1.168.192.in-addr.arpa:6: near eol: unexpected end of input
    /etc/bind/zones/rev.1.168.192.in-addr.arpa:9: no TTL specified; zone rejected
    /etc/bind/zones/rev.1.168.192.in-addr.arpa:10: no TTL specified; zone rejected
    /etc/bind/zones/rev.1.168.192.in-addr.arpa:16: unknown RR type 'example.com'
    dns_rdata_fromtext: /etc/bind/zones/rev.1.168.192.in-addr.arpa:22: near eol: unexpected end of input
    /etc/bind/zones/rev.1.168.192.in-addr.arpa:25: no TTL specified; zone rejected
    /etc/bind/zones/rev.1.168.192.in-addr.arpa:26: no TTL specified; zone rejected
    zone 1.168.192.in-addr.arpa/IN: loading master file /etc/bind/zones/rev.1.168.192.in-addr.arpa: unexpected end of input
    _default/1.168.192.in-addr.arpa/IN: unexpected end of input
    I don't understand why bind is complaining about TTL settings, none were specified in the tutorial. I also can't tell if semicolons are necessary, or just comment indicators. Here are my zone files.

    Code:
    dthacker.org.  IN SOA ns1.dthacker.org. (
                                      2007062602
                                      28800
                                      3600
                                      604800
                                      38400; )
    
    dthacker.org.           IN NS ns1.dthacker.org.
    
    ns1             IN  A  192.168.1.30
    buckbeak        IN  A  192.168.1.5
    fluffy          IN  A  192.168.1.3
    Code:
    @ IN SOA ns1.dthacker.org. (
                            2007062602;
                            28800;
                            604800;
                            604800;
                            86400
    )
    
                         IN    NS     ns1.dthacker.org
    30                    IN    PTR   dthacker.org
    Any help would be appreciated. These eol errors are driving me nuts!
    Dave
    Admin, Ubuntu Nebraska Local Community Team

  10. #40
    Join Date
    Feb 2007
    Beans
    21

    Re: Howto: Setup a DNS server with bind

    dthacker: I think your problem is the semicolon in this line:

    38400; )
    The semicolon is the start of a comment in these files, so everything after the semicolon on that line is ignored. This means your closing parentheses is not being recognized.

Page 4 of 16 FirstFirst ... 2345614 ... LastLast

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
  •