Sample Header Ad - 728x90

add alias for localhost in /etc/hosts using Augeas

0 votes
2 answers
1059 views
I am trying to use augtool to auto edit my /etc/hosts, as I wish to add an alias for localhost (so that I can test my webserver with a different host-name, localy). I have been looking every-ware to find good documentation. I with to find the node with ipaddr of 127.0.0.1 and add an alias to it. I would also like to find some good documentation to Augeas.
Asked by ctrl-alt-delor (28626 rep)
Sep 17, 2017, 05:28 PM
Last activity: Sep 19, 2017, 04:10 PM