Skip to content

Conversation

@HaitaiNg
Copy link

@HaitaiNg HaitaiNg commented Dec 16, 2025

Description:
Issue : #2

This pull request adds wrapper binaries for domainname, dnsdomainname, ypdomainname, nisdomainname each in bin that call into the hostname library (hostname -d or hostname -y). The domainname, nisdomainname, and ypdomainname are aliases for the NIS/YP domain aname. I implemented them as thin wrapper binaries over the existing hostname implementation to avoid duplicated logic and reduce long term drift.

Testing

cargo test --test wrapper_binaries

Additional Validation

Build binaries:
cargo build --bins 

Run a build binary directly 
target/debug/hostname -d 
target/debug/dnsdomainname --help
target/debug/nisdomainname --help
target/debug/ypdomainname --help
target/debug/domainname --help 

You could also use cargo:
cargo run --bin domainname -- --help

@HaitaiNg HaitaiNg force-pushed the hostname-wrapper-binaries branch from 498bd73 to 7cc7cd9 Compare December 16, 2025 13:10
@HaitaiNg HaitaiNg marked this pull request as ready for review December 16, 2025 13:12
@HaitaiNg HaitaiNg mentioned this pull request Dec 16, 2025
@HaitaiNg
Copy link
Author

This is my first pull request for a rust project. Any feedback would be appreciated. Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant