On 17/06/17 09:27, Stuart Henderson wrote:
> On 2017-06-16, Maurice McCarthy <mansel...@gmail.com> wrote:
> > Ooops! ... Well, I moved the .Xauthority file aside and restarted X to
> > create a new one. Obviously it has one line with my hostname in it. But 
> >
> > $ xauth list
> > fresh.yem/unix:0  MIT-MAGIC-COOKIE-1  ... 
> > advancedsearch.virginmedia.com:0  MIT-MAGIC-COOKIE-1 ... 
> >
> > And only now did I notice that the magic cookie is identical for both
> > entries. This mystifies me. (BTW apparently Virgin has historically used
> > a bit of DNS hijacking so I bunged this line into /etc/hosts before
> > restarting X.
> >
> > 127.0.0.1   advancedsearch.virginmedia.com )
> 
> It'll be because of your hosts entry. Try xauth -n list instead.
> 
> 

Ahhhh, I see. The hosts entry says that advancedsearch.virginmedia.com
is an alias for the local  host.

$ xauth -n list
fresh.yem/unix:0  MIT-MAGIC-COOKIE-1  ... 
81.200.64.50:0  MIT-MAGIC-COOKIE-1  ...

So this tells me why I'm getting this list now. But that hosts entry was
only made _after I'd found virginmedia in the xauth list. 

Thanks to Stuart and all others for the suggestions. It seems clear to
me now that my understanding is not good enough to grasp what is going
on and I should be left alone to educate myself about dns etc. 

Kindest Regards
Moss

Reply via email to