Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The same system will be running squid proxy server and if user wants to access Internet the name resolution should be through ISP's dns server.
right now i have created hosts file and placed in the users system for name resolution of private IPs. But if any change in the IP, i have edit hosts file of each and every system which is a tedious process.
I need complete setup guide as per the above requirement and it would be nice if configured file is provided with explanation for me to understand.
just set up bind9 and add an entry for those domains like you would any other. Never done this before but i would do something like this (no idea if it work though)
Code:
@ IN SOA hostname.domain.com. domains.domain.com. (
1181707685
10800
3600
604800
38400 )
cms.eri.blr.in. IN A 192.168.0.10
km.eri.blr.in. IN A 192.168.0.11
pms.eri.blr.in. IN A 192.168.0.12
ess.eri.blr.in. IN A 192.168.0.13
But this might not be the exact way to do it. you should consult the bind man pages.
just set up bind9 and add an entry for those domains like you would any other. Never done this before but i would do something like this (no idea if it work though)
Code:
@ IN SOA hostname.domain.com. domains.domain.com. (
1181707685
10800
3600
604800
38400 )
cms.eri.blr.in. IN A 192.168.0.10
km.eri.blr.in. IN A 192.168.0.11
pms.eri.blr.in. IN A 192.168.0.12
ess.eri.blr.in. IN A 192.168.0.13
But this might not be the exact way to do it. you should consult the bind man pages.
Dan
Thank you for your reply.
I just want to know what is hostname.domain.com. domains.domain.com. Should i enter as it is.
Further, if user want to access Internet, then where and how to configure.
Also, i may be wrong here, but if you just add the entries above to a /etc/host file on one server and then set that server as the primary DNS for all the others it might also do the trick.
Not sure if this will work 100% or if there might be another step to it as i have never done this.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
Quote:
Originally Posted by danboland
Also, i may be wrong here, but if you just add the entries above to a /etc/host file on one server and then set that server as the primary DNS for all the others it might also do the trick.
Not sure if this will work 100% or if there might be another step to it as i have never done this.
Dan
No, it won't. Why would you bother to post about something you have no experience with?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.