Multi-NIC is not working properly
env: knot 1.5.0
network eth1 61.160.245.195 eth1:1 112.82.223.195
my knot.conf
system {
rundir "/var/run/knot";
}
interfaces {
all_ipv4 {
address 0.0.0.0;
port 53;
}
all_ipv6 {
address [::];
port 53;
}
}
control {
listen-on "knot.sock";
}
log {
syslog { any warning, error; }
}
zones {
storage "/var/lib/knot";
dnssec-keydir "keys";
dnssec-enable off;
example.com {
file "example.com.zone";
}
}
Test with dig
eth1 work
dig @61.160.245.195 auto.example.com
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.23.rc1.el6_5.1 <<>> @61.160.245.195 auto.example.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22598
;; flags: qr aa rd; QUERY: 1, ANSWER: 3, AUTHORITY: 2, ADDITIONAL: 4
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;auto.example.com. IN A
;; ANSWER SECTION:
auto.example.com. 3600 IN A 8.8.8.8
auto.example.com. 3600 IN A 58.215.133.101
auto.example.com. 3600 IN A 202.106.0.20
;; AUTHORITY SECTION:
example.com. 3600 IN NS dns1.example.com.
example.com. 3600 IN NS dns2.example.com.
;; ADDITIONAL SECTION:
dns1.example.com. 3600 IN A 192.0.2.1
dns1.example.com. 3600 IN AAAA 2001:db8::1
dns2.example.com. 3600 IN A 192.0.2.2
dns2.example.com. 3600 IN AAAA 2001:db8::2
;; Query time: 41 msec
;; SERVER: 61.160.245.195#53(61.160.245.195)
;; WHEN: Sat Aug 9 16:40:23 2014
;; MSG SIZE rcvd: 208
eth1:1 doesn't work
[root@cuc-ty-1-2-c2321 ~]# dig @112.82.223.195 auto.example.com
;; reply from unexpected source: 61.160.245.195#53, expected 112.82.223.195#53
;; reply from unexpected source: 61.160.245.195#53, expected 112.82.223.195#53
At the same ENV, listen 0.0.0.0 on bind and dnsmasq ,It works