Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


View this topic in a long page with up to 500 replies per page Create new topic
1 | 2 | 3
6360 posts

Uber Geek

Moderator
Trusted
Lifetime subscriber

  # 424854 7-Jan-2011 01:08
Send private message

Possibly plan ahead alittle better and setup the subdomains you need a day before you need to test them?



47 posts

Geek


  # 424859 7-Jan-2011 01:16
Send private message

Hi Nate,

Yes, I will have to from now on.

For home freelancer like me, the more flexibility the better. If a project suddenly has a hold up, I used to be able to just switch to another project quickly. That's why this annoys me perhaps more than anyone here.


 
 
 
 


2167 posts

Uber Geek

Trusted

  # 424868 7-Jan-2011 06:59
Send private message

asianbro: Hi Nate,

Yes, I will have to from now on.

For home freelancer like me, the more flexibility the better. If a project suddenly has a hold up, I used to be able to just switch to another project quickly. That's why this annoys me perhaps more than anyone here.



Why don't you buy yourself a VPN?  They're cheap as chips now and you can use it to bypass the Telecom proxy.  If you already have a machine in the US you can probably set it up on that?

Also, you really should fully understand DNS and TTLs, as BlakJak and others have already pointed out.  That's the proper answer to your question, but you seem to have glossed over that as "too hard"?  What are the TTL's on your domains set to currently?




It looks like I'm using an adblocker. I should consider whitelisting Geekzone in my adblocker or a subscription. The Quick Reply box will appear for me when Geekzone is whitelisted. Hooray for me! If I want to reply to this topic I should click on Compose Reply.


677 posts

Ultimate Geek

Trusted

  # 424875 7-Jan-2011 07:23
Send private message

The caches currently have default error pages, and we are looking at changing that, but it wont be next week.

The Telecom DNS caches do honor TTL, so lowering the TTL will work on our network. All new entries should be available immediately, so long as it is new then the caches will do recursive resolution on the name that is not in the cache. The only caveat to that is if it is in the negative cache due to someone hitting it before the record is availble from the authoritative server. I think from memory negative cache is 1 hr but i will check later.

There are a couple of ways around this issue:

* Get a static and have your traffic bypassed from the Telecom Caches.
* Get a VPN like muppet suggests.
* And then what i do in almost all cases, use putty and setup a socks tunnel to your web host, add that as the proxy on your browser and things work instantly. foxyproxy is a great aid in the developers tool set...

Regards

Paul




meat popsicle

2167 posts

Uber Geek

Trusted

  # 424877 7-Jan-2011 07:26
Send private message

ptinson:
* And then what i do in almost all cases, use putty and setup a socks tunnel to your web host, add that as the proxy on your browser and things work instantly. foxyproxy is a great aid in the developers tool set...



I mean to write a blog post on how to do this, as there are still many people that don't know about this "trick"!




It looks like I'm using an adblocker. I should consider whitelisting Geekzone in my adblocker or a subscription. The Quick Reply box will appear for me when Geekzone is whitelisted. Hooray for me! If I want to reply to this topic I should click on Compose Reply.


677 posts

Ultimate Geek

Trusted

  # 424881 7-Jan-2011 07:44
Send private message

That would be a good post. Will be interesting to see how far down that rabbit hole you go:)




meat popsicle



47 posts

Geek


  # 424887 7-Jan-2011 08:42
Send private message

Thank you for all the pointers.

I'll look at that foxyproxy thing, I think I've played around with it a while ago but did not see any need at the time.

 
 
 
 


710 posts

Ultimate Geek

Trusted

  # 424897 7-Jan-2011 09:15
Send private message

muppet:
asianbro: Hi Nate,

Yes, I will have to from now on.

For home freelancer like me, the more flexibility the better. If a project suddenly has a hold up, I used to be able to just switch to another project quickly. That's why this annoys me perhaps more than anyone here.



Why don't you buy yourself a VPN?  They're cheap as chips now and you can use it to bypass the Telecom proxy.  If you already have a machine in the US you can probably set it up on that?

Also, you really should fully understand DNS and TTLs, as BlakJak and others have already pointed out.  That's the proper answer to your question, but you seem to have glossed over that as "too hard"?  What are the TTL's on your domains set to currently?


Whilst the ISP's-who-mangle-with-my-interwebs bit is another argument, and the VPN will get you around it (with another layer of complexity), I keep coming back to the DNS bit.  You havn't actually answered what your TTL's are?

The other thing is if your website is using relative path, the Actual domain name you use to access the content doesn't matter (so long as you have a 'valid' dns entry).

The last website I did, I rigged www.example.com as the live site, then set up www2, 3, and 4.example.com as test addresses.

On Apache the VirtualHost statements looked a bit like:

<VirtualHost *:80>
ServerName www.example.com
DocumentRoot /home/me/www-example-com
</VirtualHost>

<VirtualHost *:80>
ServerName www2.example.com
ServerAlias www3.example.com
ServerAlias www4.example.com
DocumentRoot /home/me/test-example-com
</VirtualHost>

This meant I was working with the test site in a different folder/directory and could monkey with the DNS as I wished, without screwing with production. Oh and I was able to set the individual TTL's for www2/3/4 to lower numbers while having www as a relatively high TTL, at least until the leadup to transitioning the new site.




No signature to see here, move along...



47 posts

Geek


  # 424900 7-Jan-2011 09:33
Send private message

Hi Blakjak

The TTL is irrelevant to my situation. It's the negative cache that Paul (ptinson) mentioned that caused my problem.

I used local host entry so I can use NEW subdomain I have just created right away (instantly) without waiting for the ISP to pick it up. And I had been using local hosts because it had always worked until now.



BDFL - Memuneh
65018 posts

Uber Geek

Administrator
Trusted
Geekzone
Lifetime subscriber

  # 424903 7-Jan-2011 09:36
Send private message

asianbro: I used local host entry so I can use NEW subdomain I have just created right away (instantly) without waiting for the ISP to pick it up. And I had been using local hosts because it had always worked until now.



Yes, but remember: a hosts entry is only for your own PC, so if you are behind a proxy (as explained) then the proxy won't know about the domain yet and return the error.

Unless of course you give it a few minutes for the authoritative server to get things in place.

Also, IIRC some New Zealand hosting/domains registrars only built their zone files once or twice a day, adding to the delay. Not sure this is still the case, since we now use third party DNS providers.

 




2167 posts

Uber Geek

Trusted

  # 424905 7-Jan-2011 09:41
Send private message

asianbro: Hi Blakjak

The TTL is irrelevant to my situation. It's the negative cache that Paul (ptinson) mentioned that caused my problem.


The only way a negative result will be cached though is if you're requesting Telecom to resolve newsubentry.yourdomain.com before you've created it.

Which seems silly :)




It looks like I'm using an adblocker. I should consider whitelisting Geekzone in my adblocker or a subscription. The Quick Reply box will appear for me when Geekzone is whitelisted. Hooray for me! If I want to reply to this topic I should click on Compose Reply.




47 posts

Geek


  # 424915 7-Jan-2011 10:12
Send private message

Hi,

I've created it first of course. I could ping the subdomain but was unable to browse it. And I had to wait quite a while, virtually a whole afternoon before the subdomain was picked up.

May be the fact that I tried to access the newly created subdomain very shortly right after I created it caused the waiting to be a bit longer (due to negative cache), but I didn't know that because it had always been working before.

2167 posts

Uber Geek

Trusted

  # 424916 7-Jan-2011 10:16
Send private message

asianbro: Hi,

I've created it first of course. I could ping the subdomain but was unable to browse it. And I had to wait quite a while, virtually a whole afternoon before the subdomain was picked up.

May be the fact that I tried to access the newly created subdomain very shortly right after I created it caused the waiting to be a bit longer (due to negative cache), but I didn't know that because it had always been working before.


When you are "creating it" what are you doing exactly?  Editing a bind zone file yourself and restarting bind?  Or entering it into a DNS hosting web interfaces somewhere?

Usually the web-interface type sites are setup to reload bind every minute, or every 5 minutes.  So if you're entering it into a hosted DNS solution, you'll have to wait for them to reload their DNS server before the DNS server starts handing out answers.

So enter it, wait 10 minutes, then attempt to use it and it should work.




It looks like I'm using an adblocker. I should consider whitelisting Geekzone in my adblocker or a subscription. The Quick Reply box will appear for me when Geekzone is whitelisted. Hooray for me! If I want to reply to this topic I should click on Compose Reply.




47 posts

Geek


  # 424924 7-Jan-2011 10:47
Send private message

Hi in this case I used web interface. And you're right, they're not created right away, that's why I used to use local host entry.

677 posts

Ultimate Geek

Trusted

  # 425010 7-Jan-2011 17:02
Send private message

ptinson:
I think from memory negative cache is 1 hr but i will check later.


Its 3 hours.

You are right in so far as pinging the name from a machine with a set hosts file will result in this working and not placing a ncache result in to our DNS cache as no lookup is done, so a subsequent HTTP GET that passes through the caches could result in a ncache result if the domain name is not yet setup at the auth end.

So TTL in this instance would not have an impact as it was a new name, from what you are saying.

However BlakJak is right in pointing out TTL as more often than not complaints of caches not updating is a result of people not lowering it before changes.

Paul




meat popsicle

1 | 2 | 3
View this topic in a long page with up to 500 replies per page Create new topic



Switch your broadband provider now - compare prices


Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Intel introduces cryogenic control chip to enable quantum computers
Posted 10-Dec-2019 21:32


Vodafone 5G service live in four cities
Posted 10-Dec-2019 08:30


Samsung Galaxy Fold now available in New Zealand
Posted 6-Dec-2019 00:01


NZ company oDocs awarded US$ 100,000 Dubai World Expo grant
Posted 5-Dec-2019 16:00


New Zealand Rugby Selects AWS-Powered Analytics for Deeper Game Insights
Posted 5-Dec-2019 11:33


IMAGR and Farro bring checkout-less supermarket shopping to New Zealand
Posted 5-Dec-2019 09:07


Wellington Airport becomes first 5G connected airport in the country
Posted 3-Dec-2019 08:42


MetService secures Al Jazeera as a new weather client
Posted 28-Nov-2019 09:40


NZ a top 10 connected nation with stage one of ultra-fast broadband roll-out completed
Posted 24-Nov-2019 14:15


Microsoft Translator understands te reo Māori
Posted 22-Nov-2019 08:46


Chorus to launch Hyperfibre service
Posted 18-Nov-2019 15:00


Microsoft launches first Experience Center worldwide for Asia Pacific in Singapore
Posted 13-Nov-2019 13:08


Disney+ comes to LG Smart TVs
Posted 13-Nov-2019 12:55


Spark launches new wireless broadband "Unplan Metro"
Posted 11-Nov-2019 08:19


Malwarebytes overhauls flagship product with new UI, faster engine and lighter footprint
Posted 6-Nov-2019 11:48



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.