Knowledgebase

/etc/resolv.conf IP's and BIND Zones

Posted by Zonid, 12-18-2014, 11:12 PM
I brought a dedicated linux server with CentOS installed. /etc/resolv.conf was already populated with 2 ips (not including my server ip) //example fake ips for example Is it possible for me to use these ips in a ZONE file - something like the following. /var/named/domain.com.db //stripped down ZONE for clarity Thanks in advance? Last edited by Zonid; 12-18-2014 at 11:17 PM.

Posted by techsware, 12-19-2014, 12:31 AM
What exactly you are trying to achieve? IP addresses in resolv.conf is the name servers IP addresses, which the server will use for name resolution.

Posted by Zonid, 12-19-2014, 12:39 AM
I want to create my own nameserver(hopefully just 1) for my domain, with my server IP.(the same server IP that hosts my domains files) I am unaware at those 2 random ips and where they came from in resolv.conf, and whether I am supposed to use 1 or both of them to create a NS - neither of them are my servers IP.

Posted by techsware, 12-19-2014, 12:48 AM
If you want to create your on name servers , 1. Install a name server software on the server ( like BIND, PowerDNS, etc ) 2. Make sure it listen on your public IP addresses 3. Create zone file for your domain and you can put the server's IP addresses for NS record. 4. Register private name servers for the domain "domain.com" ( which actually you want to use as name server domain ) from your domain registrar control panel using the server IP addresses. That's it!

Posted by Kailash12, 12-19-2014, 06:20 AM
You can't use the IP addresses mentioned in resolv.conf file. If yo wish to use nameservers for your server, you will have to install Bind/NSD on your server and then you will have to configure it.

Posted by Clouvider-Dom, 12-19-2014, 06:31 AM
http://www.howtoforge.com/howtos/dns/bind http://linuxconfig.org/linux-dns-ser...-configuration whatever you find in the resolv conf is either localhost or your ISP's resolv DNS servers. You probably won't be able to park anything over there and rpobably won't have any control over those NS servers. There is a different purpose for them. Configure the name server on your VPS as per one of the above links. IF you have a control panel application installed, like cPanel, Plesk, Direct Admin, there are high chances it is already setup for you.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read


Language:

Client Login

Email

Password

Remember Me

Search