Results 1 to 5 of 5
Hi
It all started with BIND9.5 (I accidently deleted all the files in /etc/bind/), after couple weekends of repairing I think I was ready to test my DNS server. But ...
- 03-20-2009 #1Just Joined!
- Join Date
- Mar 2009
- Posts
- 5
resolve.conf
Hi
It all started with BIND9.5 (I accidently deleted all the files in /etc/bind/), after couple weekends of repairing I think I was ready to test my DNS server. But I hit a problem my machine resolves ip no matter what. To find out what is the problem I played around with my “/etc/resolv.conf” changed it to “nameserver 127.0.0.1” and various different ip’s on the network my “eth0” is static . No matter what I do I resolve names to IP.
Well these are my last configurations and it stillworks:
####### My “/etc/resolv.con “ is emptyCode:root@nicks-server:/# cat /etc/resolv.conf # Generated by NetworkManager root@nicks-server:/#
####### Configurations for my interfacesCode:root@nicks-server:/# cat /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.1.4 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1 root@nicks-server:/#
###### I’m still “digging” ip’s. I believe that it should not do that with configurations that I have.Code:; <<>> DiG 9.5.0-P2 <<>> linuxforums.org root@nicks-server:/# dig linuxforums.org ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9816 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0 ;; QUESTION SECTION: ;linuxforums.org. IN A ;; ANSWER SECTION: linuxforums.org. 300 IN A 174.132.123.98 ;; AUTHORITY SECTION: linuxforums.org. 300 IN NS ns1.linuxforums.org. linuxforums.org. 300 IN NS ns2.linuxforums.org. ;; Query time: 100 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Fri Mar 20 01:40:16 2009 ;; MSG SIZE rcvd: 85
###### Ubuntu distributionCode:root@nicks-server:/# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=8.10 DISTRIB_CODENAME=intrepid DISTRIB_DESCRIPTION="Ubuntu 8.10" root@nicks-server:/# root@nicks-server:/# dig linuxforums.org
Additional processes I run ( in case if it makes difference)
APACHE2.2
NOIP2
PHP5
I understand that there is a simple solution to the problem but unfortunately for I have not found it. My internet research did not give me an answer (maybe I looked for a wrong stuff). I would like to find out if:
1) the machine get’s it DNS server’s ip from some where else.
2) what applications could affect my DNS resolutions and “/etc/resolv.conf” process.
3) And if it’s possible to fix my problem.
Thanks a lotLast edited by NICKOLA; 03-20-2009 at 09:08 AM. Reason: a mistake in code
- 03-20-2009 #2Linux Newbie
- Join Date
- Sep 2004
- Location
- UK
- Posts
- 160
Iam assuming you have bind running on that machine.
from man resolv.conf
Code:nameserver Name server IP address Internet address (in dot notation) of a name server that the resolver should query. Up to MAXNS (currently 3, see <resolv.h>) name servers may be listed, one per keyword. If there are multiple servers, the resolver library queries them in the order listed. If no nameserver entries are present, the default is to use the name server on the local machine. (The algorithm used is to try a name server, and if the query times out, try the next, until out of name servers, then repeat trying all the name servers until a maximum number of retries are made.)In a world without walls and fences, who needs Windows and Gates?
- 03-20-2009 #3
I'm not sure I understand the question.
The name server running on the local machine
will go out onto the net and resolve addresses.
Post your /etc/bind/named.conf
- 03-21-2009 #4Just Joined!
- Join Date
- Mar 2009
- Posts
- 5
Thank you blinky it's information that I did not know. Now, lots of things cleared up.
- 03-21-2009 #5Just Joined!
- Join Date
- Mar 2009
- Posts
- 5
Sorry I should of begin with it. As mentioned before I accidently deleted all the files in /etc/bind/ so I started to reassemble my named.conf I did not created my root zone yet ( I was going to do that after I make sure that DNS is working with example zone.) Anyways, here is my named.conf:
Code:root@nicks-server:/etc/bind# cat named.conf include "/etc/bind/rndc.key"; options { }; controls { inet 127.0.0.1 allow { localhost; } keys { rndc-key; }; }; zone "example.com" { type master; file "/etc/bind/local/db.example.com"; }; root@nicks-server:/etc/bind#


Reply With Quote