LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   DNS configuration (https://www.linuxquestions.org/questions/linux-newbie-8/dns-configuration-4175581695/)

amidouflorian 06-07-2016 04:04 PM

DNS configuration
 
Hi all I'm configuring a Network Access which named Packetfence,I have installed on Centos 6.7.After authenticating my user I cannot access to the internet : I got this problem on my client : The dns isn't responding.I have a router that can acess to the Internet and the user is connected to a cisco switch which can also access to the internet.I have put the dns on the router like this

ip name-server 8.8.4.4
ip name-server 8.8.8.8
ip domain lookup source-interface FastEthernet0/1

The user cannot access to the Internet.The problem is that on my Centos 6.7 I have multiple vlans and I don't know how to configure DNS for multiple vlans.It is for that I put the dns on the router to be able to do resolutions of my IP adresses.This is an example of my DHCP configuration(Because when connecting a user It gots an IP adress from its vlan and a DNS configuration)
authoritative;
ddns-update-style none;
ignore client-updates;
subnet 192.168.20.0 netmask 255.255.255.0 {
option routers 192.168.20.1;
option subnet-mask 255.255.255.0;
option domain-name="www.google.com";
option domain-name-servers 192.168.1.1;
range 192.168.20.10 192.168.20.250;
default-lease-time 300;
max-lease-time 600;
}

Is some who can help me please?
Thanks

keefaz 06-08-2016 09:03 AM

Why not put the router address for domain-name-servers (I notice your domain-name-servers entry is not in same network)? Also I would remove option domain-name="www.google.com"

Code:

authoritative;

subnet 192.168.20.0 netmask 255.255.255.0 {
  option routers 192.168.20.1;
  option subnet-mask 255.255.255.0;
  option domain-name-servers 192.168.20.1;
  range 192.168.20.10 192.168.20.250;
  default-lease-time 300;
  max-lease-time 600;
}



All times are GMT -5. The time now is 08:02 PM.