...
Using a text editor (such as vim, nano, or emacs), open this file, then see if you can find the options section, adding this line:
Code Block |
---|
allow-recursion { 127.0.0.1; }; |
In some cases this file may include other config files, such as Kloxo's. It looks like this:
Code Block |
---|
//Kloxo |
...
include "/etc/kloxo.named.conf"; |
...
//Kloxo global config (stop being open recursors) |
...
include "/etc/global.options.named.conf"; |
In this case, you can add an options section yourself, making the resulting file look like this:
Code Block |
---|
options |
...
{ allow-recursion {127.0.0.1;}; |
...
}; |
...
//Kloxo |
...
include "/etc/kloxo.named.conf"; |
...
//Kloxo global config (stop being open recursors) |
...
include "/etc/global.options.named.conf"; |
Then run the command: service named restart
...
edit /etc/resolv.conf
Replace these lines:
Code Block |
---|
nameserver 208.77.208.4 |
...
nameserver 208.77.208.5 |
with this one:
Code Block |
---|
nameserver 127.0.0.1 |
Verify you can ping domains outside of the server such as google.com, facebook.com, yahoo.com etc.
...
- Update DNS Server settings
- Open the Windows DNS Manager:
- Start > Search for DNS will usually find it
- Right click your server, and left click properties
- Click the Root Hints tab, click copy from server, type in 208.77.208.4 and click ok
- After copying these, make sure they resolve
- Select an item in the Name servers list
- Click Edit
- Click on the Resolve button.
It should return with an IP address and OK in the Validated section like this:
- After copying these, make sure they resolve
- Open the Windows DNS Manager:
- Update Network adapter settings
- Open Network and Sharing Center > Change Adapter Settings > Right click your Local Area Connection > Internet Protocol Version 4 > Properties
- Change your preferred DNS Server to 127.0.0.1, and remove the Alternate DNS Server.
- Open Network and Sharing Center > Change Adapter Settings > Right click your Local Area Connection > Internet Protocol Version 4 > Properties
...