LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-24-2004, 06:48 AM   #16
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30

Thank you very much bathory && scowles for such a kind response.

and finally it started now i can move furthre towards my way to learning DNS server.
 
Old 09-24-2004, 07:00 AM   #17
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
# dig -x 127.0.0.1

; <<>> DiG 9.2.3rc2 <<>> -x 127.0.0.1
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 52363
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;1.0.0.127.in-addr.arpa. IN PTR

;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Sep 24 17:39:59 2004
;; MSG SIZE rcvd: 40

when used dig command why not it gives me any ANSWER SECTION as it is given tldp.org docs below and even no AUTHORITY SECTION....


------------------------------------------
for reference through tldp.org

$ dig -x 127.0.0.1
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26669
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;1.0.0.127.in-addr.arpa. IN PTR

;; ANSWER SECTION:
1.0.0.127.in-addr.arpa. 259200 IN PTR localhost.

;; AUTHORITY SECTION:
0.0.127.in-addr.arpa. 259200 IN NS ns.linux.bogus.

;; Query time: 3 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sun Dec 23 02:26:17 2001
;; MSG SIZE rcvd: 91

Last edited by emailssent; 09-24-2004 at 07:02 AM.
 
Old 09-24-2004, 07:17 AM   #18
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,169
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
Have you created the zone file for 0.0.127.in-addr.arpa? It's named/127.0.0 according to your named.conf. You can also check your logs to see what zones are loaded when bind starts.
 
Old 09-24-2004, 07:35 AM   #19
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
thankx, dig -x 127.0.0.1 problem is solved, zone file is not correctly created now it is ok,

now docs says to dig some nearest system
it did,

# dig pat.uio.no

; <<>> DiG 9.2.3rc2 <<>> pat.uio.no
;; global options: printcmd
;; connection timed out; no servers could be reached


# dig www.yahoo.com

; <<>> DiG 9.2.3rc2 <<>> www.yahoo.com
;; global options: printcmd
;; connection timed out; no servers could be reached


why i am not able to dig any system by its name,
 
Old 09-24-2004, 07:44 AM   #20
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
# dig www.yahoo.com

; <<>> DiG 9.2.3rc2 <<>> www.yahoo.com
;; global options: printcmd
;; connection timed out; no servers could be reached


Is named running?
What name server IP address is specifed in /etc/resolv.conf?
Have you tried: dig @127.0.0.1 www.yahoo.com ?

Last edited by scowles; 09-24-2004 at 07:46 AM.
 
Old 09-24-2004, 07:48 AM   #21
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
# ps aux|grep named
named 4083 0.0 2.0 10800 2408 ? S 18:11 0:00 named -u named
named 4084 0.0 2.0 10800 2408 ? S 18:11 0:00 named -u named
named 4085 0.0 2.0 10800 2408 ? S 18:11 0:00 named -u named
named 4086 0.0 2.0 10800 2408 ? S 18:11 0:00 named -u named
named 4087 0.0 2.0 10800 2408 ? S 18:11 0:00 named -u named
root 4209 0.0 0.6 1864 760 pts/1 S 18:25 0:00 man named.conf
root 4212 0.0 0.9 2420 1124 pts/1 S 18:25 0:00 sh -c (cd /usr/share/man && (echo ".pl 1100i"; /usr/bin/bzip2 -c -d '/usr/share/man/man5/named.conf.5.bz2'; echo; echo ".pl \n(nlu+10") | /usr/bin/gtbl | /usr/bin/nroff -mandoc -c | /usr/bin/less -isrR)
root 4213 0.0 0.9 2420 1164 pts/1 S 18:25 0:00 sh -c (cd /usr/share/man && (echo ".pl 1100i"; /usr/bin/bzip2 -c -d '/usr/share/man/man5/named.conf.5.bz2'; echo; echo ".pl \n(nlu+10") | /usr/bin/gtbl | /usr/bin/nroff -mandoc -c | /usr/bin/less -isrR)
root 4228 0.0 0.5 1828 604 pts/0 R 18:28 0:00 grep named

#/etc/resolv.conf
search mandrake
nameserver 127.0.0.1
 
Old 09-24-2004, 07:50 AM   #22
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,169
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
That's because you don't have: forwarders {xx.xx.xx.xx ...}
so if your DNS does not know the answer (which is normal since it isn't authorized for other domains)
it does not have another DNS to ask. Use you ISP's name servers in the forwarders line of your named.conf and restart bind
 
Old 09-24-2004, 07:57 AM   #23
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
Quote:
so if your DNS does not know the answer (which is normal since it isn't authorized for other domains)
how can i make it authorized for other domains




in the option switch in named.conf file i already added

forward first;
forwarders {
172.16.0.1;
};

where 172.16.0.1 is ip of my internet provider,

- i can't ping 172.16.0.1
- i am accessing internet on this system(on which i am configuing DNS is through proxy server in LAN)
- i have 3 system connected to a LAN (out of which 2 are sharing internet through 3rd system using proxy)
 
Old 09-24-2004, 08:05 AM   #24
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,169
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
I think you need more reading
Quote:
how can i make it authorized for other domains
Your DNS is authorized only for your domain(s), not for the others like yahoo.com
Anyway when you make a query your DNS keeps the domain in it's cache so it's available next time you ask for it.
As for your ISP's DNS, are you sure that this is the correct IP, because it's a private IP and not a public one.
 
Old 09-24-2004, 08:12 AM   #25
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
@bathory
As for your ISP's DNS, are you sure that this is the correct IP, because it's a private IP and not a public one


yes it is ISP ip(through which i had purchased internet connection-cable internet)

, becz the system through which i am sharing internet on this system (192.168.1.2 -onwhich iam trying to configure DNS) can ping this ip (172.16.0.1) and on the proxy server(192.168.1.1) the gateway, dns and authentication server is set to this ip , that is given by ISP

for referenece
================
172.16.0.1- ISP ip
192.168.1.2- on which i am trying to configure DNS
192.168.1.1- proxy server (on internet is directly coming through isp)

Last edited by emailssent; 09-24-2004 at 08:17 AM.
 
Old 09-24-2004, 08:17 AM   #26
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,169
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
Code:
dig yahoo.com @172.16.0.1
Does the above produce any output?
 
Old 09-24-2004, 08:20 AM   #27
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
forward first;
forwarders {
172.16.0.1;
};


Why are you forwarding non-authorititive queries (yahoo.com) to your ISP's name server when you are loading the root (hint) zone? This should still work, but your name server should be able to do recursive queries for any domain name since the root (hint) zone is loaded. Well, just as long as your ISP or your firewall is not blocking those outbound requests.
 
Old 09-24-2004, 08:22 AM   #28
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
output,

# dig yahoo.com @172.16.0.1

; <<>> DiG 9.2.3rc2 <<>> yahoo.com @172.16.0.1
;; global options: printcmd
;; connection timed out; no servers could be reached

i have made some changes in post 25,

as i said i can't ping 172.16.0.1 through 192.168.1.2 (on which i am sharing internet and configuring DNS)
 
Old 09-24-2004, 08:25 AM   #29
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
@scowles
Why are you forwarding non-authorititive queries (yahoo.com) to your ISP's name server when you are loading the root (hint) zone? This should still work, but your name server should be able to do recursive queries for any domain name since the root (hint) zone is loaded. Well, just as long as your ISP or your firewall is not blocking those outbound requests.

could plz. explain above in more detail for a newbie.

no firewall is configured on my system right now.
 
Old 09-24-2004, 08:51 AM   #30
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,169
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
I didn't understand which one from 172.16.0.1 and 192.168.1.1, is your ISP's name server.
Also as scowles said, perhaps your ISP blocks the traffic to some ports.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS service error LinuxRam Linux - Networking 4 09-12-2004 05:26 AM
Dns Service praveenv Linux - Newbie 2 09-08-2004 12:24 PM
Dynamic Ip Dns Service murphyyoung Linux - Networking 2 06-19-2004 02:34 PM
DNS ERROR: Name or service not known. rioguia Linux - Networking 25 10-21-2003 09:46 AM
DNS Service ddepuemd Linux - Networking 1 05-16-2002 11:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration