Jump to content
xisto Community
Ally1405241517

Need Help Configuring The BIND DNS Server Make it resolving some domains as I want.

Recommended Posts

Please help me with configurating bind dns server. I configured it for internet domain names resolving (forwarder) and local domains resolver (xxxxx.ds) now I need that dns resolve internet domain as I want. cs.kuban.tv as 192.168.144.200 instead of 213.132.64.34, I don't know how to do it. DNS server I forward request to, resolve it as 213.132.64.34. What I should write in config file? Slackware linux 10.2 / BIND 9.Thanks for all who will reply. :)

Share this post


Link to post
Share on other sites

cs.kuban.tv as 192.168.144.200 instead of 213.132.64.34, I don't know how to do it. DNS server I forward request to, resolve it as 213.132.64.34.

Isn't that done in /etc/hosts file? At least when I want to point hostname to 127.0.0.1 i do it in /etc/hosts...

/etc/hosts192.168.144.200			 cs.kuban.tv

Don't know for sure. But it seems logical to me :)

bakr_2k5

Share this post


Link to post
Share on other sites

If I add this to hosts it resolves as 192.168.144.200 only on computer where are I added this. DNS server doesn't look for records in hosts. Hosts file uses as first place where computer try to find hostname <> ip address.

Share this post


Link to post
Share on other sites

Please help me with configurating bind dns server.

I configured it for internet domain names resolving (forwarder) and local domains resolver (xxxxx.ds) now I need that dns resolve internet domain as I want. cs.kuban.tv as 192.168.144.200 instead of 213.132.64.34, I don't know how to do it. DNS server I forward request to, resolve it as 213.132.64.34.

What I should write in config file?

Slackware linux 10.2 / BIND 9.

Thanks for all who will reply. :)

 


Add lines to /etc/named.conf:

zone "cs.kuban.tv" {

type master;

file "cs.kuban.tv.hosts";

};

 

Create file /var/named/cs.kuban.tv.hosts:

$ttl 38400

cs.kuban.tv. IN SOA cs.kuban.tv. root.cs.kuban.tv. (

1053609663

10800

3600

604800

38400 )

cs.kuban.tv. IN A 192.168.144.200

 

Directory where to create cs.kuban.tv.hosts may differ from mine, but you can easy find proper location by lookup line directory "/var/named"; in /etc/named.conf file

 

Should help.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.