mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 19:19:30 +00:00
host: Use ArgsParser to parse arguments, and add man page (#1252)
Fixes #1246.
This commit is contained in:
parent
088d7be19c
commit
83668299a6
Notes:
sideshowbarker
2024-07-19 17:39:47 +09:00
Author: https://github.com/f-eiwu
Commit: 83668299a6
Pull-request: https://github.com/SerenityOS/serenity/pull/1252
Reviewed-by: https://github.com/bugaevc
2 changed files with 36 additions and 10 deletions
25
Base/usr/share/man/man1/host.md
Normal file
25
Base/usr/share/man/man1/host.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
## Name
|
||||
|
||||
host - DNS lookup utility
|
||||
|
||||
## Synopsis
|
||||
|
||||
```**sh
|
||||
$ host <name>
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
`host` is a simple utility for performing DNS lookups. It is used to
|
||||
convert names to IP addresses and vice versa.
|
||||
|
||||
`name` is the domain name that is to be looked up. It can also be a
|
||||
dotted-decimal IPv4 address, in which case `host` will perform a reverse
|
||||
lookup for that address.
|
||||
|
||||
## Examples
|
||||
|
||||
```sh
|
||||
$ host github.com
|
||||
$ host 8.8.8.8
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue