Page MenuHomeFreeBSD

Fix casper limitations
ClosedPublic

Authored by oshogbo on Aug 28 2018, 10:04 PM.
Tags
None
Referenced Files
F105944764: D16930.diff
Sun, Dec 22, 10:35 PM
Unknown Object (File)
Thu, Dec 19, 3:38 PM
Unknown Object (File)
Sat, Nov 23, 11:14 AM
Unknown Object (File)
Nov 4 2024, 12:35 PM
Unknown Object (File)
Oct 27 2024, 2:03 PM
Unknown Object (File)
Oct 26 2024, 4:29 AM
Unknown Object (File)
Oct 25 2024, 12:26 AM
Unknown Object (File)
Oct 25 2024, 12:26 AM
Subscribers

Details

Summary

The getaddrinfo and gethostbyname are used to return
address for a given hostname. The getnameinfo and gethostbyaddr are used to
return hostnem for a given address. Right now in Casper we have two
limitations: NAME which allows to resolve DNS names. ADDR which allows to do
revert DNS lookups.

Before this change the rights was mixed up:
NAME - getnameinfo and gethostbyname
ADDR - gethostbyaddr and getaddrinfo

Which no matters on limitation allowed us to resolve DNS names and do DNS lookups
basically by using different set of functions.

Now the NAME type allows getaddrinfo and gethostbyname functions, and the ADDR names
allows to use gethostbyaddr and getnameinfo functions.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Two fixes for the man page.

lib/libcasper/services/cap_dns/cap_dns.3
137

s/revert/reverse/
s/is/are/

Change looks good, my only suggestion would be to use maybe NAME2ADDR and ADDR2NAME, so the intentions are obvious.

This revision is now accepted and ready to land.Oct 20 2018, 11:08 PM
This revision was automatically updated to reflect the committed changes.