DNS config problems
Gunther, Dean (Dean)
dgunther at lucent.com
Thu Sep 16 09:26:03 PDT 2004
What I would do is start nslookup in interactive mode by running nslookup <return>
Then once inside nslookup you can set the server you wish to query by typing
server=<ip of server you want to query>
You can also see what is going on with the query by setting the debug level
set d2
This will give you a lot of output as to what query was sent to what server to
be able to resolve your query so you will want to be able to scroll the screen to
see the queries and their responses.
You should not have a localhost record in your prideindesign.com zone. You should
create a separate zone db.0.0.127.in-addr.arpa with a zone file similar to the one below:
===========================================================================
; Local server zone information: 0.0.127.in-addr.arpa
;===========================================================================
@ IN SOA dmguntherbsd.company.com. email.company.com. (
1 ; Serial No.
21600 ; Refresh
3600 ; Retry
604800 ; Expire
86400 ) ; Minimum
;
IN NS dmguntherbsd.company.com.
1 IN PTR localhost.
As long as you have the zone company.com and an A record for dmguntherbsd in that zone.
Give that a shot and let me know if that helps.
Dean
-----Original Message-----
From: Joshua Lewis [mailto:jmlewis at dslextreme.com]
Sent: Tuesday, September 14, 2004 2:06 PM
To: freebsd-newbies at freebsd.org
Subject: DNS config problems
I don't think I have set up Bind9 correctly and I was hoping someone could
point out any mistakes I may have made. I have tried to follow the
examples in the handbook. I even bought DNS and BIND from O'riley.
I don't really know how to troubleshoot a DNS issue yet. I know of the
tools I just don't understand them yet. I have a MS DNS server running
fine as my secondary and when I try to troubleshoot it I can't tell if I
am getting a response from my MS system or my FBSD system.
Ultimately I would like to make this bind system my primary. Once that is
done I have made arrangements for an off site system to act as my
secondary for redundancy and I can eliminate the MS system all together.
Should I post my config info here or is that just a real bad idea? I mean
anyone can get what they want from the internet I just don't know if
posting it here is like inviting someone to crack my system.
Also I currently only have one FreeBSD system. I am trying to run multiple
services on this one system Mail, DNS, WWW, SQL. It is a pretty beefy
system and will have no problem handling the load. I just want to hide the
hostname of the system when I can. I only have the one customer hitting
the system and it is a real small company. This system is overkill for
them so I am trying to utilize the system to the best of my ability. I
know in a perfect world I should have them each running on separate
systems however that is not feasible right now. I was thinking of getting
some old P1 systems and moving DNS over to that. Any other recommendations
are welcome.
Here is what I have. Please be gentile.
apollo# ll /etc/namedb/
total 18
-rw-r--r-- 1 root wheel 427 May 25 14:28 PROTO.localhost-v6.rev
-rw-r--r-- 1 root wheel 423 May 25 14:28 PROTO.localhost.rev
-rw-r--r-- 1 root wheel 492 Sep 10 16:21 localhost-v6.rev
-rw-r--r-- 1 root wheel 488 Sep 10 16:21 localhost.rev
-rw-r--r-- 1 root wheel 1032 May 25 14:28 make-localhost
-rw-r--r-- 1 root wheel 133 Sep 10 16:45 named.conf
-rw-r--r-- 1 root wheel 2602 May 25 14:28 named.root
drwxr-xr-x 2 root wheel 512 Sep 10 16:57 prideindesign.com
apollo# more named.conf
options {
directory "/etc/namedb";
zone "prideindesign.com"{
type master;
file "prideindesign.com/prideindesign.com.rev";
};
zone "250.159.66.in-addr.arpa" {
type master;
file "prideindesign.com/250.159.66.in-addr.arpa.bak";
};
apollo# ll prideindesign.com/
total 4
-rw-r--r-- 1 root wheel 649 Sep 14 06:58 250.159.66.in-addr.arpa
-rw-r--r-- 1 root wheel 978 Sep 14 06:57 prideindesign.com.rev
apollo# more 250.159.66.in-addr.arpa
$TTL 3600
250.159.66.in-addr.arpa. IN SOA ns1.prideindesign.com.
admin.prideindesign.com.
(
200409131 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
3600 ) ; Minimum
@ IN NS ns1.prideindesign.com.
@ IN NS ns2.prideindesign.com.
221 IN PTR ns1.prideindesign.com.
218 IN PTR ns2.prideindesign.com.
221 IN PTR mail.prideindesign.com.
221 IN PTR prideindesign.com.
221 IN PTR www.prideindesign.com.
221 IN PTR imap.prideindesign.com.
apollo# more prideindesign.com.rev
$TTL 3600
prideindesign.com. IN SOA ns1.prideindesign.com. admin.prideindesign.com. (
2004091301 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
86400 ) ; Minimum TTL
;
; DNS Servers
;
prideindesign.com. IN NS ns1.prideindesign.com.
prideindesign.com. IN NS ns2.prideindesign.com.
;
; Machine Names
;
localhost IN A 127.0.0.1
prideindesig.com. IN A 66.159.250.221
ns1.prideindesign.com. IN A 66.159.250.221
ns2.prideindesign.com. IN A 66.159.250.218
mail.prideindesign.com. IN A 66.159.250.221
;
; Aliases
;
www.prideindesign.com. IN CNAME prideindesign.com.
imap.prideindesign.com. IN CNAME mail.prideindesign.com.
smtp.prideindeign.com. IN CNAME mail.prideindesign.com.
; MX Record
prideindesign.com. IN MX 10 mail.prideindesign.com.
_______________________________________________
freebsd-newbies at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-newbies
To unsubscribe, send any mail to "freebsd-newbies-unsubscribe at freebsd.org"
More information about the freebsd-newbies
mailing list