#configure terminal | Enter configure mode |
(config)#ip dns relay address 1.1.1.2 | Set the IPv4 address of a DNS server |
(config)#ipv6 dns relay address fd01::2 | Set the IPv6 address of a DNS server |
(config)#commit | Commit the configuration |
(config)#interface xe44 | Enter interface mode (interface connected to client) |
(config-if)#ip address 4.4.4.1/24 | Assign an IPv4 address to the interface |
(config-if)#ip dns relay | Set the interface as a DNS relay client-facing IPv4 port |
(config-if)#ipv6 address fd02::1/16 | Assign an IPv6 address to the interface |
(config-if)#ipv6 dns relay | Set the interface as a DNS relay client-facing IPv6 port |
(config-if)#commit | Commit the configuration |
(config)#interface xe1 | Enter interface mode (interface connected to server) |
(config-if)#ip address 1.1.1.1/24 | Assign an IPv4 address to the interface |
(config-if)#ip dns relay uplink | Set the interface as a DNS relay server-facing IPv4 port |
(config-if)#ipv6 address fd01::1/16 | Assign an IPv6 address to the interface |
(config-if)#ipv6 dns relay uplink | Set the interface as a DNS relay server-facing IPv6 port |
(config-if)#commit | Commit the configuration |
(config)#exit | Exit configure mode |