Operating System - HP-UX
1827811 Members
1865 Online
109969 Solutions
New Discussion

Disable some IP addresses on DNS server

 
SOLVED
Go to solution
Dewa Negara_4
Regular Advisor

Disable some IP addresses on DNS server

Hi All,
Need your help. I have a DNS server running on HPUX 11.00, and I would like to disable some IP addresses on the DNS server. What are the steps to do that?

Thanks and Best Regards,
Negara
Santos
3 REPLIES 3
Sundar_7
Honored Contributor
Solution

Re: Disable some IP addresses on DNS server


Are u looking to remove some IP addresses from the DNS database ?

Sorry, the question is not very clear to me.

Learn What to do ,How to do and more importantly When to do ?
John Dvorchak
Honored Contributor

Re: Disable some IP addresses on DNS server

The way to disable, actually delete, DNS names involves editing two file. To determine those two files you have to look at /etc/named.boot to find where the "zone" records are located on your system. It will be the file pointed to by "directory" line in /etc/named.boot.

On a standard server they would normally be in the /etc/named directory but check by reading the /etc/named.boot file.

You will see at least two files there that point toward "A" and "PTR"records. Usually they are named db.your_domain and db.your_ip_subnet i.e:

db.hp.com and db.192.168.0

Those files contain the forward (db.com) and the reverse (db.192..) lookup files. Simply edit them, removing the reference to those IP Address and increment the serial number to reflect the change.

Old file:

root> cat db.sbc
@ IN SOA one.your.com. root.chop.sbc.com. (
1 ; Serial
10800 ; Refresh every 3 hours
3600 ; Retry every hour
604800 ; Expire after a week
86400 ) ; Minimum ttl of 1 day
IN NS chop.sbc.com.

localhost IN A 127.0.0.1
one IN A 10.163.65.47
two IN MX 10 hree.your.com.


Notice the serial entry is 1 just increment it two 2.

Same thing on the db.address file

Once you have done this, start and stop named:

/sbin/init.d/named stop
/sbin/init.d/named start

Good luck
If it has wheels or a skirt, you can't afford it.
Suresh Patoria
Super Advisor

Re: Disable some IP addresses on DNS server

Hi,

If i am understandin Quat. then i think you want to disable or remove the some of the hostname resolution in your DNS server.

Do the Following step:
1) List the name of host and ip address

2)check the /etc/named.conf and find out the in which direcotry contain the DNS database directory

3)Change to the DNS database directory which you specified in /etc/named.conf file. e.g /var/named, /etc/named etc.

4)open the forward zone file like any named something.com
open it in to vi editor and remove the which you want to remove the hostname associate IP address then save and quit from the file

5)repeat the step4 in reverse zone database file

in that there is entry like ipaddress to hostnamed
Remove the ipaddress which you listed out

save the file and quit from the file

Here no need to stop and start the service because we only editing the database when we issue the query it only looks the database file

Thanx