?
Solved

centos 6 64bit local dns to resolve internet issues

Posted on 2014-02-18
5
Medium Priority
?
265 Views
Last Modified: 2014-03-11
dear gurus

our users using windows xp/7/8

where in their pc network until we enter global isp dns or google dns 8.8.4.4 or 8.8.8.8

the never go to internet. so for this we want to build a small server to resolve locally and forward/redirect/route traffic to internet via local dns linux  centos 6 server


so can someone assist on this ideally

regards
atmc
0
Comment
Question by:tmsa12
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 13

Expert Comment

by:Daniel Helgenberger
ID: 39867735
Hello atmc,

I hope I did understand the matter correctly:
- You want a DNS server to locally resolve hostnames;#
- recursively resolve the rest with your ISP's/Google's DNS servers

The last part, the forwarder, is fairly easy to accomplish. Just install BIND on your centos box, edit the config and set your clients to use the new DNS server:
http://docs.tsuru.io/en/latest/misc/dns-forwarders.html

The other part is not so straightforward:
- As long as you use static IPs (no DHCP) then just edit the zone file as in the tutorial above.

If you want also a DHCP server with dynamic DNS updates, I recommend using a more user friendly approach and use a ready-made Firewall appliance.

I strongly recommend pfSense:
http://pfsense.org/
You can install it on any old PC. After installing it you access and configure pfSense via it's Web GUI.

Then enable the DHCP your LAN (internal) interface there and check the box to resolve DHCP leases.
Also, you might want to install the Avahi package in the package manager.

Note: Though pfSense is a fully flagged firewall, you do not need to use it as a gateway but as a DHCP/DNS server only if you like; applying no filtering at all.
0
 

Author Comment

by:tmsa12
ID: 39868100
dear sir

thank you

in fact it will be local dns which help end user clent to go on internet, via global isp dns or say google dns etc. this is needed

yes all are static ips

regards
0
 
LVL 13

Expert Comment

by:Sandy
ID: 39869626
create caching-only name server or configure dnsmasq on centos.. It's easy and provide you better recursive query results

TY/SA
0
 

Author Comment

by:tmsa12
ID: 39869654
Dear Gurus

highly appreciate but any tips links of guidline for such cases handy support onwards fruther

highly appreciate

rgds atmc
0
 
LVL 13

Accepted Solution

by:
Daniel Helgenberger earned 1000 total points
ID: 39869674
Hello,
here is another nice Tutorial on how to install bind on your centos box:
https://www.digitalocean.com/community/articles/how-to-install-the-bind-dns-server-on-centos-6

The main part is the 'mydomain.com.zone' file witch the author uses.
There you need to configure your static entries (the ip's of your pc's).

Keep in mind, choose the name of your domain wisely; it must not collide with a normal internet domain. If you call your local domain for instance 'google.com', it will mess up things. For instance, use the TLD like 'local': mycomany.local; or a domain you actually own.

In the master zone file, add your PC's like this:
mypc01    IN     A      192.168.0.10

Open in new window

'mypc01' is then the actual name of the host.

Also, do not forget to set all the pc's to use the name server and also set your domain name (in the tutorial mydomain.com) as search domain.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month12 days, 22 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question