[olug] Testing contents of resolv.conf

Jay Bendon jaybocc2 at gmail.com
Thu Aug 22 23:59:11 UTC 2013


OLUG'ing is not slacking! ;)

--Jay


On Thu, Aug 22, 2013 at 4:46 PM, Brady Cox <brady.cox at gmail.com> wrote:

> Bendon, you're already slacking at your new job?
> On Aug 22, 2013 6:37 PM, "Jay Bendon" <jaybocc2 at gmail.com> wrote:
>
> > nm-tool will also show you.
> >
> > zsh/2 231 % nm-tool
> >
> > NetworkManager Tool
> >
> > State: connected (global)
> >
> > - Device: eth0  [Wired connection 1]
> > -------------------------------------------
> >   Type:              Wired
> >   Driver:            r8169
> >   State:             connected
> >   Default:           yes
> >   HW Address:        redacted
> >
> >   Capabilities:
> >     Carrier Detect:  yes
> >     Speed:           1000 Mb/s
> >
> >   Wired Properties
> >     Carrier:         on
> >
> >   IPv4 Settings:
> >     Address:         redacted
> >     Prefix:          21 (255.255.248.0)
> >     Gateway:         redacted
> >
> >     DNS:             redacted
> >     DNS:             redacted
> >     DNS:             redacted
> >
> >
> > --Jay
> >
> >
> > On Thu, Aug 22, 2013 at 3:59 PM, Kevin <sharpestmarble at gmail.com> wrote:
> >
> > > What about iptables?
> > >
> > >     sudo iptables -I OUTPUT -d $primary_dns_server_ip -j REJECT
> > >
> > >
> > > On Thu, Aug 22, 2013 at 4:47 PM, Jay Bendon <jaybocc2 at gmail.com>
> wrote:
> > >
> > > > man host
> > > >
> > > >
> > > > host domain.com.to.look.up $server_ip_to_query_from
> > > >
> > > > --Jay
> > > >
> > > >
> > > > On Thu, Aug 22, 2013 at 2:43 PM, Dave Thacker <
> dthacker at bluestrain.net
> > > > >wrote:
> > > >
> > > > > Scenario:
> > > > >
> > > > > The corporate mothership hath decreed that a new IP address be
> added
> > to
> > > > > /etc/resolv.conf on all linux devices, including some IVR
> appliances
> > in
> > > > my
> > > > > realm.  (CentOS  and Red Hat)  The new address points to a snazzy
> new
> > > DNS
> > > > > appliance.
> > > > >
> > > > > The Name Service Caching Daemon (nscd) is not in use, these boxes
> do
> > > not
> > > > > run
> > > > > any SMTP.  The primary application has the addresses it needs in
> > > > > /etc/hosts.
> > > > > My google-fu has failed me on finding a suitable way to see if this
> > > > second
> > > > > ip
> > > > > address would be used in a DNS lookup.   Anybody got a command
> line I
> > > > could
> > > > > run and pull a return from?
> > > > >
> > > > > Dave
> > > > >
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > OLUG mailing list
> > > > > OLUG at olug.org
> > > > > https://lists.olug.org/mailman/listinfo/olug
> > > > >
> > > > _______________________________________________
> > > > OLUG mailing list
> > > > OLUG at olug.org
> > > > https://lists.olug.org/mailman/listinfo/olug
> > > >
> > > _______________________________________________
> > > OLUG mailing list
> > > OLUG at olug.org
> > > https://lists.olug.org/mailman/listinfo/olug
> > >
> > _______________________________________________
> > OLUG mailing list
> > OLUG at olug.org
> > https://lists.olug.org/mailman/listinfo/olug
> >
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> https://lists.olug.org/mailman/listinfo/olug
>


More information about the OLUG mailing list