Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
Knot DNS
Knot DNS
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 24
    • Issues 24
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 18
    • Merge Requests 18
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Knot projects
  • Knot DNSKnot DNS
  • Issues
  • #277

Closed
Open
Opened Aug 09, 2014 by yingcai@yingcai⛹

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

Assignee
Assign to
2.1.1
Milestone
2.1.1 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: knot/knot-dns#277