Jump to content

adephue

Members
  • Posts

    9
  • Joined

  • Last visited

adephue's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. I am actually reformatting. My Dell Laptop just toasted its 4th HDD is two years so I got a new drive and motherboard under warranty and am in the process of setting everything back up... that said, there is not much in my hosts file right now, but I can give examples. I am using two hosts files. One is the default, the other is called hosts2 and it has all of my local development entries so it would look like this: 127.0.0.1 localhost 127.0.0.2 www.somedomain.com 127.0.0.3 www.someotherdomain.com My 'switch' script is as follows: @echo off rename hosts tmp rename hosts2 hosts rename tmp hosts2 ipconfig /flushdns So basically I have my script attached to a keyboard shortcut. I run the script (which simply swaps two versions of the hosts file) and command-line utilities pickup the dns change immediately. Regardless of what browser I use (have tried FF 1.5 & 2, IE6 & 7) it takes several minutes for the page to load from the correct source.
  2. Thanks Patrick for the input. I am using WindowsXP and I use the FTP functionality in Dreamweaver except when we work on sites that are load balanced across multiple servers. I am in favor of relative links but a lot of the sites I pull down to work on are not. I use the hosts file to make entries that resolve to local IP addresses. For example, in this case I might add: 127.0.0.2 www.somedomain.com Now if I flush the DNS cache and wait for a couple of minutes, my browsers will resolve to locally served content when I type in www.somedomain.com. When I am ready to upload and check results on the web I want to be able to run my switch script (which removes the above specified entry and re-flushes the cache). My problem is, it takes almost 5 minutes for my browsers to recognize the change event though ping and ipconfig /displaydns resole to the correct external IP. How do I make the change instantaneous in the browser like it is for command-line tools like ping and ipconfig?
  3. I am a web developer by trade and I am looking to streamline my local developing experience in the following way. As a precursor to my question, I have Apache and MySQL running locally on my PC. Currently, if I pull down a new client's website for development (let's say www.somedomain.com); I create an Apache virtualhost for dev.somedomain.com AND a hosts file entry to resolve dev.somedomain.com to a local IP address. Frequently I find hard-coded absolute URL's which requires me to find/replace, make site changes, find replace again, then upload. What I would like to do is develop locally as www.somedomain.com, run a script to change my PC's settings, upload files, then check on the WWW to make sure everything is ok. Currently I have a script that 1) switches the default hosts file with the one I made with my site entries (or vice versa) -and- 2) flushes the local DNS cache. So, I boot up the PC and my hosts file is default. I type www.somedomain.com into my browser and online content from the web is displayed. Now here's the problem. I run my switch script which swaps hosts files to the one having an entry for www.somedomain.com and flushes the local DNS cache. If I ping www.somedomain.com it resolves locally. if I ipconfig /displaydns it is listed as having a local IP address... problem is, it takes almost 5 minutes for any browser to start displaying local content. I have tried clearing browser cache. I have tried hard refresh. I have tried stopping/starting Apache. I have tried stopping/starting local DNS service. I have tried killing local DNS service altogether. I have tried altering the registry to locally cache DNS entries for only a few seconds. If I wait a few minutes, www.somedomain.com starts displaying locally served content like it should. SO... I run my switch script again and the reverse happens. Ping and displaydns show outside-world IP's but the browsers take about 5 minutes to reflect changes. Bottom line ::: I hope to find a way for the change to be instantaneous in my web browsers. Any ideas?
  4. For what it is worth, just in case someone else runs into this... You have to log in to cPanel through http://domain.abc/cPanel which will redirect you to http://domain.abc:2082/frontend/x/index.html I was logging in to cPanel through a different method which was causing my problem. A
  5. Am I the only one having trouble with phpMyAdmin? I open a database, open a table, click browse, get a list of records, pick one, click to edit, change *anything*, click GO to submit changes (with SAVE and GO BACK TO PREVIOUS PAGE AS OPTIONS)... I always get this: Warning: Invalid argument supplied for foreach() in /usr/local/cpanel/base/3rdparty/phpMyAdmin/tbl_replace.php on line 155 Warning: Cannot modify header information - headers already sent by (output started at /usr/local/cpanel/base/3rdparty/phpMyAdmin/tbl_replace.php:155) in /usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries/common.lib.php on line 1154 -also-, the record isn't updated. I end up having to write SQL code to execute small changes, which - don't get me wrong, is great practice AND time consuming... but if I make a mistake that actually executes; well that could be bad. Any thoughts?
  6. As it were, I decided to move the site over to TCH. I did this last Saturday, 04 November 2006. I immediately changed DNS entries to TCH nameservers. Right now it is Thursday, 09 November 2006, seven full days after the DNS change. Here is where I am at: I am using Verizon DSL. When I connect to the mail server through outlook and send myself a test message, the headers resolve back to TCH. I also made a subtle change to the homepage, I can see the change. My client is in Mass using Comcast. When they connect to the mail server through Outlook and send a message to me, or anyone else for that matter, the headers resolve back to the old webhost. When they look at the website, they cannot see the subtle changes I made. The are looking at the site still on the old webhost. So... is the issue just dns propagation? Seven days seems like an awful long time. I also have another domain parked (which is with a different registrar). When I made DNS changes for the other domain, the changes were nearly instantaneous. Did I mention that the registrar for the main domain is owned by the deadbeat host that I switched away from in the first place? I'm not sure where to go from here because my client still has choppy e-mail service (I'm convinced because it is still hitting up the old site's mail server). All of my test whose headers resolve back to TCH have worked flawlessly. Thoughts?
  7. The script referenced above works fine. I use a modified version to dump all MySQL DB's, attach to an e-mail, and send to me daily. I also use it to do a full site backup weekly but it is too large to e-mail so I have a notification sent then I download the backup.
  8. Bruce, Thanks for the prompt reply. If their ISP was the problem, wouldn't all of their outgoing e-mail via relay on port 25 get rejected? I am able to send and receive e-mail to the very address that bounces back to them. Looking through the tech support tickets, the webhost says that 'the account is on an old server with less-than-desirable' DNS performance'. Solution: move the site to another server. I guess my question is, will something like this work? Bruce, you are right, they need their e-mail and expect it to work. That webhost's performance reflects poorly on me since I developed the site for them. If anyone out there can concretely say that a move to a 'better' server stands a good chance to fix the problem, their site is coming over to TCH this weekend. A
  9. TCH Friends, I have two clients that are hosted with TCH and things are great since we switched over. I have one other client (serviced on what I euphemistically consider to be a deadbeat webhost) who is having mail server issues. I am asking for insight on these forums because I switched my other two clients to TCH from this other worthless host and am about ready to do the same for this client, but they are wary of having to wait for the DNS change to take effect and are worried about downtime for e-mail. Here is the situation as I understand it. They send e-mail to customers and vendors that they have been doing business with for years and for about the last week about 1/3 of them never arrive, and another 1/3 of them bounce and they get 550 Error messages from the server they were sending mail to saying that the recipients are unknown. The other 1/3 or so make it ok. The same thing is happening for inbound mail, about half of what is being sent to them never arrives. I have reconfigured SpamAssassin to not discard e-mail flagged as spam but this isn't helping. The tech support at this other webhost says that they need to delete the entire site, reconfigure a fresh account, at which point I need to start fresh with all of the e-mail accounts. According to them, this will reconfigure DNS and e-mail settings. First, does this sound to anyone like a sensible or viable solution or are they just wasting my time. I have asked a couple of their vendors to whitelist their domain but it doesn't seem to be helping. If I have to do a full backup and re-upload the entire site I am going to go ahead and re-upload the site on a TCH server then make the DNS request over the weekend. I know there are a lot of details that I cannot provide. The webhost likes to give two and three word answers to very specific questions. Can anyone give any advice here? Will a new server account fix the problem or is the problem not with my client?
×
×
  • Create New...