A
A
AdmTwins2016-10-25 21:59:14
Ping
AdmTwins, 2016-10-25 21:59:14

Different dig and ping results. CHADNT?

Given: an Ubuntu Server 14.04 machine that is used as a gateway from the local network to the Internet, as well as a local DNS server (bind 1:9.9.5.dfsg-3ubuntu0.9).
Task: after changing A records on one of the domains, users on the local network still see the old ip address. We go to the server,
resolv.conf is registered
nameserver 8.8.8.8
in /etc/bind/named.conf.options

forwarders {
  8.8.8.8;
 };

dig @8.8.8.8 -t any domainname
As a result of execution, a new rewritten ip is displayed from the server
As a result of execution, the
ping domainname
old ip is displayed
//etc/hosts is clean
Multiple reloading of bind does not help, multiple dig checks show a new ip, ping shows the old ip.
What can be wrong?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan, 2016-10-26
@t3mp

Please show the content:

/etc/nsswitch.conf
and also which "old", "new" IP, you can change the last digits.

A
AdmTwins, 2016-10-26
@AdmTwins

# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         compat
group:          compat
shadow:         compat

hosts:          files dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question