ā01-05-2025 02:05 AM - edited ā01-05-2025 02:07 AM
Hi there
I have a vpn connection to connect a customer site to a servers. the site does not have a dns server. the core switch has the dhcp configued.
i have configured the following:
x.x.x.com 192.x.x.17
ip host x.x.com 192.x.x.18
ip host x.x.com 192.x.x.17
ip name-server 8.8.8.8
and dns-server (core ip) in the dhcp pool.
the clients do not go though the vpn. the source vlan ping is a success through vpn.
do i need to have domain name in the core? domain lookup? ive tried them but did'nt work. DNS ip in the pc is the core ip.
another question is that: the customer has a regular PC where windows server installed on it. can i install DNS service on it? customer has 2000 clients.
many thanks
Solved! Go to Solution.
ā01-05-2025 02:22 AM - edited ā01-05-2025 02:51 AM
The configuration you made turn the switch into a client DNS. The switch will use this information but not the clients behind it.
In order IOS you could use the switch as DNS server with the command " ip dns server". I am not sure this feature still remains in newer IOS.
You can take a look
And yes, you can use the PC with windows as DNS server.
ā01-05-2025 02:22 AM - edited ā01-05-2025 02:51 AM
The configuration you made turn the switch into a client DNS. The switch will use this information but not the clients behind it.
In order IOS you could use the switch as DNS server with the command " ip dns server". I am not sure this feature still remains in newer IOS.
You can take a look
And yes, you can use the PC with windows as DNS server.
ā01-05-2025 02:52 AM
Hello @netacaduser575395547
First, having a domain name configured on the core switch is not strictly necessary for client DNS resolution. However, enabling ip domain-lookup is crucial, as it allows the switch to resolve hostnames to IP addresses. Ensure that ip name-server is correctly set with a valid DNS server, such as 8.8.8.8 or another operational DNS server. If the core is acting as the DNS relay, verify that its configuration points to the correct upstream DNS server and that the DHCP pool includes dns-server ćcore_IPć so that clients receive it as their DNS resolver.
The ip host entries on the core are useful for hostname-to-IP mappings within the switch itself but do not help clients unless the core is explicitly used as their DNS server. If clients receive the coreās IP as the DNS server, ensure that the core can resolve external DNS queries properly by testing with commands like ping ćhostnamećfrom the switch itself.
If the clients are not routing DNS queries through the VPN, check if split tunneling is enabled on the VPN. Split tunneling can route only specific traffic through the VPN, potentially bypassing DNS traffic. To ensure all client traffic, including DNS, goes through the VPN, disable split tunneling or explicitly include DNS traffic in the VPN policy.
ā01-05-2025 06:43 AM
I will send you PM
thanks
MHM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide