ping refuses a hostname the engine can resolve, and DNS zones cannot be read #1375
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge#1375
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Simulator.ping()has accepted a hostname since #241 — it resolves through the lab's DNS servers, emits adnsevent, and keeps NXDOMAIN, NODATA and SERVFAIL apart. The console's
pingrefuses anything that is not an addressbefore the engine sees it:
So the first command anybody types cannot use the resolver the product already has.
ping server.labanswers% Invalid ping target: server.lab.Two more things in the same corner:
dns zoneanddns addare writable, and there is noshow ip dns— you can add a record and never see whatthe server would answer.
ping 10.0.0.999passesnet.isIp()(a shape check: three dots, one to three digits) and then the engine throwsInvalid IPv4 addressat the first packet.What must be true instead
ping <name>resolves first and prints the translation, the way a box does, naming the server by address.and a sentence saying what to fix — NXDOMAIN, NODATA and SERVFAIL are different problems.
show ip dns [zone [<name>]]prints the zones and records that are actually answered; a zone the server wouldrefuse to answer for says so instead of appearing live.