Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Im trying to use SED in conjunction with DiG to obtain SOA servers, Im having a hard time finding the REGEX to pull the name server from the output of:
dig +noall +answer soa computing.net
computing.net. 86400 IN SOA ns1.theplanet.com. support.computing.net. 2009101500 1200 1800 86400 1200Im trying to find a way to count from Left to Right and display only the 5th word (The name server) and strip the last "." from it

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |