08-12-2016 02:25 AM - edited 03-08-2019 06:58 AM
Hi networkers !
We have a C3560s switch - am using the management inteface G0/0 at the rear for management and want DNS /nameserver functionality. However I cant seem to get name resolution on the switch using this port ...I can tftp out of this port to a tftp server ok .
see below config ( relevant) and test results ....any help appreciated
vrf definition Mgmt-vrf
ip route vrf Mgmt-vrf 0.0.0.0 0.0.0.0 x.x.x.1 ( .1 being the default gateway)
ip name-server vrf Mgmt-vrf 10.y.y.y. (the name-servers ip on the network ) - note : pinging this address 10.y.y.yfrom within vrf-Mgmt works fine.
ip domain name vrf-Mgmt ourdomain.co.uk
interface GigabitEthernet0/0
vrf forwarding Mgmt-vrf
ip address 10.q.q.q 255.255.254.0
negotiation auto
#ping vrf Mgmt-vrf tftp.oudomain.co.uk
Translating "tftp.ourdomain.co.uk"...domain server (255.255.255.255)
% Unrecognized host or address, or protocol not running.
note TFTP server is pingable from the VRF as is 10.y.y.y
thoughts ?any ideas ?
08-12-2016 03:42 AM
Hi,
not sure it this is necessary but can you try to set the DNS source-interface to the Mgmt-Interface:
(config)# ip domain-lookup source-interface Gi0/0
HTH
Rolf
08-12-2016 03:53 AM
Hi Rolf
afraid not ...same outcome with thsi command in ,....
but thanks
10-12-2016 06:26 PM
Having the exact same problem on an ISR G2 running IOS 15.5(3)M4 and 6500 running 15.1(2)SY7
As I see it, the root problem is when enabling DNS resolution via the "ip domain-lookup" command, there's no option to specify the VRF. Setting the source-interface unfortunately does not automatically pickup the VRF either. Others with the same problem also seem to have come to the same dead end.
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