Linux - DNS Problem (bind,mandriva)

Firstly forgive me for my lameness but I’ve been using Linux for about 3 days now and my knowledge is very, very limited :slight_smile:
My boss would like me to give an in-house demo of a program that he found on the Internet. OpenIMS runs only on linux so I :

  1. Downloaded a distro (the latest Mandriva, a random choice)
  2. Downloaded and installed all the RPM packages that OpenIMS needs
  3. Downloaded and compiled the OpenIMS package (SVN package)
  4. Installed my DNS server (bind)

Unfortunatly when I followed the instructions to add a host (open-ims.test) to point to 127.0.0.1 it just doesn’t seem to work and I don’t know enough about the OS to now how to troubleshoot.

This webpage explains the entire install process :

http://www.openimscore.org/installation_guide

and here is the DNS bit (at the end of that link)
Install bind
Locate and modify named.conf to include :



zone "open-ims.test" IN {
	type master;
	file "pri/open-ims.dnszone";
	notify no;

Copy open-ims.dnszone to the correct location (pri)
Restart DNS server

Dig command to test that it works

Modif the rersolv.conf file to use the “open-ims.test” URL
No matter what I try the dig command doesn’t work



[root@localhost resolvconf]# dig pcscf.open-ims.test

; <<>> DiG 9.4.1-P1 <<>> pcscf.open-ims.test
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 9988
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;pcscf.open-ims.test.           IN      A

;; AUTHORITY SECTION:
.                       6787    IN      SOA     a.root-servers.net. nstld.verisign-grs.com. 2007110801 1800 900 604800 86400

;; Query time: 2 msec
;; SERVER: 192.168.162.6#53(192.168.162.6)
;; WHEN: Fri Nov  9 16:52:26 2007
;; MSG SIZE  rcvd: 112

and my nslookup gives me


Server:         192.168.162.6
Address:        192.168.162.6#53

** server can't find open-ims.test.open-ims.test: NXDOMAIN


So I presume that when I try a “ping open-ims.test” that the machine tests the hosts file first and if it doesn’t find any info it looks in the named.conf where it finds a reference to a file which is loads to get the IP address associated with open-ims.test

Is this right ?

No, no no. You’ve read the tutorial a little backwards. You’re not going to change your DNS to 127.0.0.1, you’re going to change it to the same as your apache server that you have setup on your computer.

You need to change the config file to your current address of 192.168.162.6, port 53.

err, ok I’ll give it a shot but that goes against what the website tells me doesn’t it ?



nameserver 127.0.0.1
search open-ims.test

I did add this though.

I’ll be back with update later…cheers !

Actually the site tells you to replace it in the config file.