# Linux - DNS Problem (bind,mandriva)

**URL:** <https://boards.straightdope.com/t/linux-dns-problem-bind-mandriva/425793>\
**Category:** Factual Questions\
**Created:** [November 9, 2007, 4:10pm UTC](https://boards.straightdope.com/t/linux-dns-problem-bind-mandriva/425793 "2007-11-09T16:10:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ponster](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/ponster/32/17081_2.png) [@Ponster](https://boards.straightdope.com/u/Ponster)\
**Post date:** [November 9, 2007, 4:10pm UTC](https://boards.straightdope.com/t/linux-dns-problem-bind-mandriva/425793/1 "2007-11-09T16:10:27Z")

</div>

Firstly forgive me for my lameness but I’ve been using Linux for about 3 days now and my knowledge is very, very limited 🙂  
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](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 :

```auto

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

```auto

[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

```auto

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 ?

---

<div class="post-metadata">

**Author:** ![twanchic](https://avatars.discourse-cdn.com/v4/letter/t/cc9497/32.png) [@twanchic](https://boards.straightdope.com/u/twanchic)\
**Post date:** [November 9, 2007, 4:19pm UTC](https://boards.straightdope.com/t/linux-dns-problem-bind-mandriva/425793/2 "2007-11-09T16:19:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Ponster](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/ponster/32/17081_2.png) [@Ponster](https://boards.straightdope.com/u/Ponster)\
**Post date:** [November 9, 2007, 4:31pm UTC](https://boards.straightdope.com/t/linux-dns-problem-bind-mandriva/425793/3 "2007-11-09T16:31:48Z")

</div>

[QUOTE=twanchic]  
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.  
[/QUOTE]

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

```auto

nameserver 127.0.0.1
search open-ims.test

```

I did add this though.

I’ll be back with update later…cheers !

---

<div class="post-metadata">

**Author:** ![twanchic](https://avatars.discourse-cdn.com/v4/letter/t/cc9497/32.png) [@twanchic](https://boards.straightdope.com/u/twanchic)\
**Post date:** [November 9, 2007, 4:46pm UTC](https://boards.straightdope.com/t/linux-dns-problem-bind-mandriva/425793/4 "2007-11-09T16:46:20Z")

</div>

> [@](#):
>
> Step 4: Configure the Environment
> 
> ```
> * Notes:
> o All the installation examples configured to work only on the local loopback
> and the default domain configured as "open-ims.test".
> o The MySQL access rights are set only for local access
> o We recommend that you try it first like this and then do your changes:
> + **Replace 127.0.0.1 where required with your IP address**
> + Replace the home domain (open-ims.test) with your own one
> + Change the database passwords
> 
> For this operation the ser_ims/cfg/configurator.sh might help you. 
> 
> ```

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