URN Logo
UNIX Resources » Linux » Linux Forum » Linux DNS Servers » Page.1 » Please help with my bind config
announcement The content of this page is collected from Linux Forum, All copyrights and other associated rights are reserved by the original authors of the articles.
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.com
  LinuxForum General Chat
  Linux Advocacy
  LinuxForum Polls
  Introductions
  Linux Kernel Support
  Patch Management
  Development Release
  Linux Programming
  Linux Security
  Linux Software
  Linux Hardware Problems
    Linux Video Problems
    Linux Sound Problems
  Linux Networking Support
  Linux Printing Support
  Linux Human Interface Devices Support
  Linux Data Storage Support
  Linux Applications Support
  Linux Installation Support
  Linux Laptops Support
  Linux Motherboard, Chipsets, CPU, Memory
  Miscellaneous
  Debian Linux Support
  Ubuntu Linux Support
  LiveCD Discussions
  Gentoo Linux Support
  Mandrake Linux Support
  Redhat / Fedora Linux Support
  Slackware Linux Support
  SuSE Linux Support
  CentOS Linux Support
  Linux Web Servers
  Linux DNS Servers
  Linux Database Servers
  Linux Email Servers
  Linux FTP Servers
  Linux Squid Proxy Server
  Linux Samba Help
  Linux cPanel Help
  Linux Ensim Help
  Linux Plesk Help
  Linux Webmin / Usermin Help
  Qmail Toaster Help
  Linux Games
  Windows Game Emulation
  Linux Discussions
  General Linux Discussions
  Red Hat Linux Discussions
  More Red Hat Linux Discussions
  Mandrake Linux Discussions
  Slackware Linux Discussions
  SuSE Linux Discussions
  Debian Discussions
  Samba Help
  Linux Security
  Linux Networking
  Gentoo Help
  Operating System Rant Forum
  Hardware Rants
   
Please help with my bind config
Subject: Please help with my bind config
Author: sassman    Posted: 2007-04-13 12:37:48    Length: 4,831 byte(s)
[Original] [Print] [Top]
I have read the docs and googled for hours, but the bind config is very confusing and everyone seems to do it a little differently. I think that bind is resolving names outside of my domain since my resolv.conf only has 127.0.0.1 and I can still access the internet. But when I run dig stephen.homeip.net (my domain), I get:
Code:
; <<>> DiG 9.3.2-P1 <<>> stephen.homeip.net
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 12187
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;stephen.homeip.net.         IN          A

;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Apr 13 13:28:12 2007
;; MSG SIZE rcvd: 36

Here are my config files:

named.conf
Code:
options {
directory "/var/cache/bind";
auth-nxdomain no;    # conform to RFC1035
listen-on-v6 { any; };
};

zone "." {
type hint;
file "/etc/bind/db.root";
};

zone "localhost" {
type master;
file "/etc/bind/db.local";
};

zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};

zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};

zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};

zone "stephen.homeip.net" {
        type master;
file "/etc/bind/stephen.homeip.net";
};
stephen.homeip.net
Code:
$TTL 604800
@ IN SOA stephen.homeip.net. webmaster.stephen.homeip.net. (
      3 ; Serial
  28800 ; Refresh
   7200 ; Retry
604800 ; Expire
604800 ; Negative Cache TTL
)
;
IN                NS      ns1.stephen.homeip.net. ;
IN NS ns2.stephen.homeip.net. ;
IN MX        10 mail.stephen.homeip.net.  ;
;
stephen.homeip.net. IN A 74.140.104.208
ns1 IN A 74.140.104.208
ns2 IN A 74.140.104.208
mail IN A 74.140.104.208
www IN A 74.140.104.208
I haven't set up the reverse zone file yet, but I think I should still be able to dig my domain name right?
[Original] [Print] [Top]
Subject: Re: Please help with my bind config
Author: pa4wdh    Posted: 2007-04-15 08:58:45    Length: 1,018 byte(s)
[Original] [Print] [Top]
Hi,

Quote
I think that bind is resolving names outside of my domain since my resolv.conf only has 127.0.0.1 and I can still access the internet.
Are you sure your /etc/resolv.conf has a nameserver entry for your own computer which has bind running ?
If the posted configuration is your complere bind config, it cannot resolv internet names in any way.

Watch /var/log/messages when you start named. It's logging is quite useful, so you might get hints on why it's not working. Post the logging if you want help with that.

A little sugestion: In your zone file replace:
Code:
stephen.homeip.net. IN A 74.140.104.208
with
Code:
      IN A 74.140.104.208
But keep in on the same line. Should have the same result, but you never know :-)

Best regards,
pa4wdh
----
The biggest difference between M$ stuff and the rest ? Most stuff is secure by design, M$ stuff is secure by accident.

bash# killall gaim
killall: Don't shoot the messenger !

If we have /dev/powerbutton, what would touch /dev/powerbutton do ?
[Original] [Print] [Top]
« Previous thread
PXE Boot Server
Linux DNS Servers
Page. 1
Next thread »
DNS Attacks
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
Powered by FreeBSD    webmaster: webmaster@unixresources.net
This page created on 2007-08-01 12:06:51, cost 0.03282904624939 ms.