Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thypon/hostaliases
libc independent HOSTALIASES support
https://github.com/thypon/hostaliases
Last synced: 21 days ago
JSON representation
libc independent HOSTALIASES support
- Host: GitHub
- URL: https://github.com/thypon/hostaliases
- Owner: thypon
- License: mit
- Created: 2015-05-28T01:15:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-28T15:55:28.000Z (over 9 years ago)
- Last Synced: 2023-03-12T06:38:08.894Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 125 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
hostaliases.so
==============`hostaliases.so` is a little dynamic library that enhance the posix functions used to get address from hostname.
It adds the possibility to define string aliases to network address.
Currently instruments:
- getaddrinfo
- gethostbyname
- gethostbyname2
- gethostbyname_r
- gethostbyname2_rUsage
------------```
export HOSTALIASES=~/.hosts
echo "g www.google.com" >> ~/.hosts
LD_PRELOAD=/usr/lib/hostaliases.so curl g # This would redirect you to www.google.com
```