Portal Home > Knowledgebase > Articles Database > Bind & nslookup ?
Bind & nslookup ?
Posted by Nex☺, 08-20-2008, 07:53 PM |
How can i configure my bind dns so it stop displaying all my dns entry with nslookup ?
|
Posted by david510, 08-20-2008, 08:00 PM |
Why do you want this to happen? Any specific reason. Its a way to check if a site is down or not.
|
Posted by TheITAdvisory, 08-20-2008, 09:53 PM |
I will help you out here.
Make a copy of your original bind9 config; cp /etc/named.conf /etc/named.original.conf
THEN...
Use your favorite text editor, and open /etc/named.conf
Find where it says options in the configuration file
Right above options, put in the following & remember the xxx's should resemble in order, the IP for ns1 and then ns2 and then the 3rd IP could be your IP at home, or what ever;
acl "trusted" {
xxx.xxx.xxx.xxx;
xxx.xxx.xxx.xxx;
xxx.xxx.xxx.xxx;
};
THEN....
Find where it says query-source address and below that put
allow-recursion { trusted; };
allow-notify { trusted; };
allow-transfer { trusted; };
};
Save the config, and then restart bind.
You're welcome
|
Posted by Nex☺, 08-21-2008, 09:09 AM |
Yes this solution works !
Thank mate !
Now can i add in the acl a network like 10.8.0.0/24 so when i connect over my vpn and it gives me an ip in that range i can do nslookup to monitore and config my zone ?
|
Posted by omega36, 08-21-2008, 09:40 AM |
Yup, I'm quite particular you can use CIDR notation
|
Posted by TheITAdvisory, 08-21-2008, 11:23 AM |
Yes, just make another xxx entry with the IP and CIDR xxx.xxx.xxx/xx
|
Add to Favourites Print this Article
Also Read
waiting (Views: 590)