DNS is drivimg me crazy ! (need another set of eyes)
Andy D
adingfelder at yahoo.com
Wed Nov 26 22:39:31 UTC 2003
Thanks for the help Pete,
I have tried to respond to your questions below:
Pete Ehlke <pde at ehlke.net> wrote in message news:<bq2tse$otg$1 at sf1.isc.org>...
> On Wed, Nov 26, 2003 at 07:37:19AM +0000, andy dingfelder wrote:
> >
> > Ok, I made the jump and formatted my win2k box and installed redhat 9.
> > Now im having a bear of a time getting my DNS set up. I have perused a
> > gazillion how-to guides and am obviously missing something :( Im hoping
> > some kind soul can help to keep me from going back to the dark side :P
> >
> > Basially, I would love another set of eyes to look at my config to see
> > what I am doing wrong.
>
> You're going to have to tell us what it is that makes you think
> something is wrong. You haven't asked a question and you haven't
> described a problem. What is it that used to work but now doesn't?
Good point Pete,
Reading back on my notes (which I thought were complete) I failed to
list what I saw that was going wrong.
Basically, my issue is:
I can hit my server with the ip address directly
(http://66.47.74.218/index.html) but not using the domain name
(http://www.computingasyoulikeit.com/index.html)
Godaddy (I have my domain registered with them) responds with my
nameservers (ns1.computingasyoulikeit.com and
ns2.computingasyoulikeit.com) set to my ip 66.47.74.218, but if I do a
dig command, I get:
buyitsellit.com% dig @66.47.74.218 computingasyoulikeit.com
; <<>> DiG 8.3 <<>> @66.47.74.218 computingasyoulikeit.com
; (1 server found)
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 6
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUERY SECTION:
;; computingasyoulikeit.com, type = A, class = IN
;; Total query time: 26 msec
;; FROM: buyitsellit.com to SERVER: 66.47.74.218
;; WHEN: Wed Nov 26 22:18:03 2003
;; MSG SIZE sent: 42 rcvd: 42
I believe my configuration is not set up right so my name servers are
not resolving computingasyoulikeit.com or www.computingasyoulikeit.com
correctly
>
> >
> > Finally, I believe DNS is up and running because I can telnet to
> > localhost 53 and when I grep for "named", I get:
>
> Most dns transactions happen over udp, not tcp. It's good that you can
> make a tcp connection to your name server, but unless you can send it a
> query and get a response, you've not debugged much.
>
> >
> > For these examples:
> > 1. I am changing my domain to "mydomain"
>
> Don't do that. The DNS is inherently a public system. You don't protect
> anything by obscuring data, and you *do* make it impossible for people
> to actively debug your setup. Repost, with a description of *what* you
> think is wrong, *why* you think something is wrong, and your complete,
> *unedited* configuration files.
>
Ok, I will repost the files with my domain and ip dut I fear I will
dread it :( I the last time I posted my ip address, the number of
bogus (hacking) hits from the web increased dramatically. I believe I
am safe since I have my system locked down on all ports other than the
ones i listed above so I guess that is ok.
Regarding the "what" (ie what is wrong) I am not really sure at this
point, or I wouldn't be asking.
>
> -Pete
Here are the reposted config files:
>>>>>>> start /etc/hosts
127.0.0.1 jomamma localhost.localdomain localhost
>>>>>>> end /etc/hosts
----------------------------------------------------
>>>>>>> start /var/named/0.0.127.in-addr.arpa.zone
$TTL 3600
@ IN SOA ns1.computingasyoulikeit.com.
admin.computingasyoulikeit.com. (
2003112418 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttk
)
NS ns1.computingasyoulikeit.com.
NS ns2.computingasyoulikeit.com.
1 PTR localhost.
>>>>>>> end /var/named/0.0.127.in-addr.arpa.zone
----------------------------------------------------
>>>>>>> start /var/named/1.168.192.in-addr.arp.zone
$TTL 3600
@ IN SOA @ root.localhost (
2003112418 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttk
)
@ IN NS ns1.computingasyoulikeit.com.
@ IN NS ns2.computingasyoulikeit.com.
>>>>>>> end /var/named/1.168.192.in-addr.arp.zone
----------------------------------------------------
>>>>>>> start /var/named/computingasyoulikeit.com.zone
$TTL 3600
@ IN SOA ns1.computingasyoulikeit.com.
admin.computingasyoulikeit.com. (
2003112501 ; serial
2880 ; refresh
720 ; retry
60480 ; expire
8640 ; ttl
)
IN NS ns1.computingasyoulikeit.com.
IN NS ns2.computingasyoulikeit.com.
IN MX 10 mail.computingasyoulikeit.com.
ns1 IN A 66.47.74.218
ns2 IN A 66.47.74.218
jomamma IN A 66.47.74.218
www IN CNAME jomamma
webserver IN A jomamma
mail IN A jomamma
; eot
>>>>>>> end /var/named/computingasyoulikeit.com.zone
----------------------------------------------------
>>>>>>> start /var/named/localhost.zone
$TTL 3600
$ORIGIN localhost.
@ 1D IN SOA @ root (
2003112417 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttk
1D IN NS @
1D IN A 127.0.0.1
>>>>>>> end /var/named/localhost.zone
----------------------------------------------------
>>>>>>> start /var/named/named.local
$TTL 3600
@ IN SOA localhost. root.localhost. (
2003112417 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
1 IN PTR localhost.
>>>>>>> end /var/named/named.local
----------------------------------------------------
(in this file the 3 nameservers are earthlink's dns servers)
>>>>>>> end /etc/resolv.conf
search computingasyoulikeit.com
nameserver 207.217.120.83
nameserver 207.69.188.185
nameserver 207.69.188.186
>>>>>>> end /etc/resolv.conf
More information about the bind-users
mailing list