Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect IP address with --sourceaddr gives not error message #316

Open
matsduf opened this issue Mar 13, 2023 · 0 comments
Open

Incorrect IP address with --sourceaddr gives not error message #316

matsduf opened this issue Mar 13, 2023 · 0 comments
Labels
T-Bug Type: Bug in software or error in test case description
Milestone

Comments

@matsduf
Copy link
Contributor

matsduf commented Mar 13, 2023

The documentation for --sourceaddr says

	--sourceaddr STR       Source IP address used to send queries.
	                       Setting an IP address not correctly configured
	                       on a local network interface causes cryptic
	                       error messages.

It is expected that some error message comes out if the IP address is wrong (not configured on the interface), but when --sourceaddr is used in that way nothing comes out that gives a clue.

Compare a test with correct IP address with a one that is not on the interface (IPv6 disabled):

$ zonemaster-cli --test basic --level info zonemaster.net --no-ipv6 --sourceaddr 172.31.10.109 # Correct IP address
Seconds Level     Message
======= ========= =======
   0.00 INFO      Using version v4.6.2 of the Zonemaster engine.
   0.28 INFO      Parent domain 'net' was found for the tested domain.
   1.28 INFO      Nameserver ns2.nic.fr/192.93.0.4 listed these servers as glue: ns2.nic.fr.,nsa.dnsnode.net.,nsp.dnsnode.net.,nsu.dnsnode.net..
   1.28 INFO      Nameserver nsa.dnsnode.net/194.58.192.46 listed these servers as glue: ns2.nic.fr.,nsa.dnsnode.net.,nsp.dnsnode.net.,nsu.dnsnode.net..
   1.28 INFO      Nameserver nsp.dnsnode.net/194.58.198.32 listed these servers as glue: ns2.nic.fr.,nsa.dnsnode.net.,nsp.dnsnode.net.,nsu.dnsnode.net..
   1.29 INFO      Nameserver nsu.dnsnode.net/185.42.137.98 listed these servers as glue: ns2.nic.fr.,nsa.dnsnode.net.,nsp.dnsnode.net.,nsu.dnsnode.net..
   1.29 INFO      Functional nameserver found. "A" query for www.zonemaster.net test skipped.

$ zonemaster-cli --test basic --level info zonemaster.net --no-ipv6 --sourceaddr 172.31.10.110 # Incorrect IP address
Seconds Level     Message
======= ========= =======
   0.00 INFO      Using version v4.6.2 of the Zonemaster engine.
   0.02 INFO      Parent domain '.' was found for the tested domain.
   0.04 CRITICAL  No NS records for tested zone from parent. NS tests skipped.

Preferably something should come out that indicate the error.

@matsduf matsduf added the T-Bug Type: Bug in software or error in test case description label Mar 13, 2023
@matsduf matsduf added this to the v2023.2 milestone Mar 13, 2023
@matsduf matsduf modified the milestones: v2023.2, v2024.1 Mar 19, 2024
@matsduf matsduf modified the milestones: v2024.1, v2024.2 Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Bug Type: Bug in software or error in test case description
Projects
None yet
Development

No branches or pull requests

1 participant