Dnsmasq redirect if site is down

I have a dnsmasq dns-server set up on a computer in my LAN. I want my dns server to test whether wikipedia.com is reachable, and if it's not, point the client computer to a local copy of wikipedia. I was thinking I could do this with a few frequently visited sites, and have some script that tests whether those sites are up every five minutes. Dnsmasq could then read from a file whether it should redirect or not.
Is this possible?
Thanks!
Last edited by rayman (2011-09-10 11:27:15)

Hi,
I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
Thanks for your understanding and support.
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place.

Similar Messages

  • My site went down and I need help getting it back up please!

    Hello.   I am new to this forum and new to Dreamweaver.   I had a friend who was helping with my website but lapsed on a payment or two and the site went down.  I can log back in now but I am unsure how to move the pages that I stored on my desktop back to the website space.   I tried "insert" but that button doesn't even light up.   Bottom line is I have a folder with the pages before it went down though I am unsure how to convert those to html.   I need to know how to move those files back into Dreamweaver so they appear on the website the way the did before it went down.   I also have them in a zip file form that he asked for a couple of years ago.    Would that help or be a better way to get the files back into Dreamweaver?  I am Dreamweaver "stupid" so I need any and all help I can get and thank you very much!    If you want to answer me privately, you can email me at [email protected]   I would appreciate anything anybody can do to help this "stupid old broad" try to figure out how to get this website back up fairly quickly as I just mailed a grant in and I am sure they will be checking out the website.   We are a small nonprofit.   Thanks again!

    Hi Hans.   I appreciate your "hanging with me" and yes I should change the date on my camera.   I changed the batteries recently and just haven't reset it. 
    I guess I am just not able to find how I access the Dreamweaver directory in the second window.   I have tried various "paths" but cannot find anything within Dreamweaver that says "directory".  Only things like required, regloc, plug ins, LMResources, legal, JVM, installer, etc. so I am apparently not following the right path to the directory.   I have tried everything.
    I have to be "real careful" as to what I do on the website as the space is "borrowed" from another person who also has his sites up there.   I feel confident though that if I could just copy the older working files onto the site again that "all would be well"   The "tree" is still there but somehow the files are incorrect and I don't even know how to remove them and start again.  I just can't seem to figure anything out.   I am very very new at all of this and have probably relied on others for much too long.
    Again, thank you so much for your time and effort.   I am still reading and looking  :-)
    Peace
    Pam

  • Click close button in infopath form shuld be redirect to site page not a list by default

    Hi
    I am custmizing a list in infopath
    i created a view created by user and
    i created a site page and assigned a created by user view to a webpart on this page
    here i need when this list opens in edit mode , when i click close button this form shuld be redirect to site page
    now its rediricting to list>all items
    all items is default view for this list
    adil

    Hi adil,
    According to your description, my understanding is that you wanted the redirect to another page once InfoPath form had been closed.
    You can add a Content Edit web part above the InfoPath form web part with the following code:
    $(document).ready(function(){
    if($('#DialogFinalMessage').children().length>0)
    window.location.href = "<Desired destination page URL>";
    For more information: 
    http://shareapointkiran.blogspot.in/2011/12/infopath-form-redirect-to-any-page-once.html
    Here are some similar posts for you to take a look at:
    http://blogs.technet.com/b/sharepointwarrior/archive/2012/03/16/sp-2010-how-to-redirect-infopath-form-to-a-custom-thank-you-page.aspx
    http://www.graphicalwonder.com/?p=666
    http://social.technet.microsoft.com/Forums/en-US/1e732bb8-9090-40c4-b1a3-1dad8960c3c1/redirecting-to-the-home-page-when-clicking-on-close-button-of-the-item-in-a-list?forum=sharepointcustomizationprevious
    http://social.technet.microsoft.com/Forums/en-US/69839309-d6d9-4a25-9100-82b2393f9054/click-on-infopaht-close-button-redirect-to-another-page?forum=sharepointgeneralprevious
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • When redirecting to site url jsessionid is appended and url becomes wrong

    hi,
    i have requirement when user clicks on link on b2c application then it should redirect to a site url.The problem when redirecting to site url is that jsessionid gets appended to site url and as a result url is not opened   due to wrong url generated as follows
    http://www.mahindralifespaces.com/SPLENDOUR/PROJECTMILESTONE.ASP;jsessionid=(mlkndcrmsdev_LCD_00)ID0618353650DB01149016834107209233End;saplb_*=(mlkndcrmsdev_LCD_00)7680550?a=b
    how to overcome this problem .did any one have idea
    Regards,
    Pavan

    i am directing forwarding to url using struts action forward using following code
    strUrl=mybom.getProjectStatusBO().getProjectStatusURL(userId);
    log.error("user url"strUrl"userId--"+userId);
    request.setAttribute("strUrl",strUrl);
    forward.setPath(strUrl);
    forward.setRedirect(true);
    return forward;
    following solved my problem
    i have chaged  web-j2ee-engine.xml file
    <cookie-config>
              <cookie>
                   <type>SESSION</type>
                   <path>APPLICATION</path>
                   <domain>NONE</domain>
              </cookie>
              <cookie>
                <type>APPLICATION</type>
                <path>APPLICATION</path>
                <domain>NONE</domain>
              </cookie>
    domain to none solved my problem
    Regards,
    Pavan

  • How to achieve failover when the master definition site is down ?

    I have two Oracle 8i instances in a multi-master async replication environment. Two J2EE application servers connect to each of the Oracle instance respectively. When one of the oracle instance is down, I'd like to have my J2EE application failover to the second Oracle instance automatically without human intervention. I understand I can use OCI driver to allow my J2EE app to connect to the other Oracle instance when the first is down. But here are some questions:
    1. If I understand it correctly, there's only one master definition site. Let's say my master definition site sits with the first Oracle instance. If this server is down, the DBA has to go in to config the second Oracle instance to be the master definition site. Can this be done automatically without the DBA ?
    2. If the master definition site is down and the DBA is yet to come in, will the second Oracle instance still work ? I do understand the replication won't work, but will normal database read/write work ? What happens between the master definition site down and the master definition site reconfigured ?
    3. Are there any low cost third party tools can handle what I wanted ?
    Thanks in advance,

    To answer your questions.
    1. Yes there is only one master def site, it is not important to relocate the master def site, in the event of its failure. The def site is used as a the source for replication definition generation.
    2. It depends upon what type of multi-master replication you have implemented. If you are using asynch replication, the site that is up will continue to allow updates and will queue the transactions. When the other site(s) are active again, it will forward the transactions. Note, this can cause untold problems if you have a heavy used system, and narrow bandwidth. If on the other hand you are using synchanous replication, when one site goes down, the other site(s) lock their tables to prevent dml/ddl changes. Then you have to decide whether or not you can wait for the down site to be restored, or break replication to continue operations.
    3. Yes, there are a few, one that comes to mind, I believe is Shareplex.

  • Upload an app just before the site is down and get rejection ??

    Are there anyone managed to upload any app just before the site is down, and his/her app is approved ? I get a rejection from the market and since there is no description in the mail I wonder if anyone face a situation like me?

    No its not its not working correct. maybe for some but i can't even check my sales or market on the app.
    it won't even stop loading the screen after u did your name and password keeps on going.
    i just managed to send app before site got down haven't got any feedback from apple yet that it was rejected go accepted.
    cross fingers

  • Need JavaScript for Sharepoint Designer 2010, to show a Pop-up to all the users between date range and the redirect the site

    Dear all,
    I am very new to Sharepoint designer 2010. Its better to say, i am just stepping in.
    I have sharepoint site which is accessible for all the users to update few information. But i want this site not to be accessible during a date range, say from 15th to 20th of every month.
    I am planning to have something like this: If any user tries to access this sharepoint site between 15th to 20th date range of everymonth, then the browser must show an pop-up alert saying "This site is not accessible during this date range" and Redirect
    this sharepoint site to someother site (Say http:// somesitename.xx.com) immidiately.
    I know very little about how to add Javascript in sharepoint webpart.
    Please provide the Javascript or any best alternate solution to my concern.
    Thanks in advance.

    Hi,
    From your description, my understanding is that you want to redirect sharepoint site to another site between 15th and 20th every month.
    I agree with what Sudip says. If you still want to use JS code,You could try these steps
    below:
    Open your site with SharePoint Designer.
    Click Master Pages in left navigation.
    Find file v4.master, and backup it(it is very important).
    Right click your v4.master,
    choose "Edit File in Adavance Mode".
    Add the code below into the <head/> tag.
    <script src="https://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script><script
    type="text/javascript">
    $(document).ready(function(){
    var today = new Date();  
    var day = today.getDate(); // get current day
    var id = _spPageContextInfo.userid; // get the id of current logon in user
    var boolFlg = false;
    $.ajax({
       url: _spPageContextInfo.webAbsoluteUrl + "/_api/web/SiteGroups/GetByName(\'"+"sharepoint Owners"+"\')/Users", //get users in a specified group can access the sharepoint site from 15th to 20th every
    month
       type: "GET",
       headers: {"accept": "application/json;odata=verbose"},
       success: function (data) {
          if (data.d.results) { 
             var src = data.d.results;
             for(var i = 0; i < src.length; i++){
                if(src[i].userid==id){ //check the logon in user in  the specified group or not
                   boolFlg = false;
                   break;
             if(!boolFlg){
                if(day <= 20 && day >=15){
                    alert("This site is not accessible during this date range"); // alert the message
                    location.href = "http:// somesitename.xx.com"; // redirect to another site
       error: function (xhr) {
          alert(xhr.status + ': ' + xhr.statusText);
    })</script>
    Best Regards
    Vincent Han
    TechNet Community Support

  • Site is down page.

    Hi All,
    We would like to set up a 'site is down page.'  I would like to check with all the experts here and see how you have accomplished this.  I understand we can probably leverage the global error page setting.  But we wanna see if this can be pushed to the HTTP level.  In the Visual Admin for HTTP Provider, we see that we can set the Welcome pages.   We wanna see if we can specify the maintenance page there.  However, we don't know where this page is stored. 
    Any help is greatly appreciated.
    Here is a link from help.sap talking about this setting...
    http://help.sap.com/saphelp_nw04/helpdata/en/87/2307bd9b38004784e1fd5c09ecc5c2/frameset.htm
    Thanks
    Dave

    Another question, we've brought down our content servers and the sorry server is sending out the sorry page that we have set up. I added all the settings indicated in the link about you gave me, and based on some of the other articles that I have seen while troubleshooting I have changed some of the persistence settings. Here are my configurations, any ideas?
    !*************************** GLOBAL ***************************
    no restrict web-mgmt
    no restrict xml
    dns primary 10.20.1.2
    ip route 0.0.0.0 0.0.0.0 10.20.1.1 1
    !************************* INTERFACE *************************
    interface 1/1
    phy 1Gbits-FD-sym
    !************************** CIRCUIT **************************
    circuit VLAN1
    router-discovery lifetime 1000
    ip address 10.20.1.4 255.255.255.0
    router-discovery
    !************************** SERVICE **************************
    service Blade01
    ip address 10.20.1.60
    active
    service Blade02
    ip address 10.20.1.61
    active
    service Blade03
    ip address 10.20.1.62
    active
    service Blade04
    ip address 10.20.1.63
    active
    service sorry
    ip address 10.20.1.41
    active
    !*************************** OWNER ***************************
    owner OWNER
    email-address
    content server1
    vip address 10.20.1.80
    balance aca
    add service Blade01
    add service Blade02
    primarySorryServer sorry
    no persistent
    active
    content server2
    vip address 10.20.1.81
    add service Blade03
    add service Blade04
    balance aca
    active
    !*************************** GROUP ***************************
    group server1
    vip address 10.20.1.80
    add destination service Blade01
    add destination service Blade02
    add destination service sorry
    group server2
    add destination service Blade03
    add destination service Blade04
    vip address 10.20.1.81

  • NI Communitie​s site is down

    It seems that the NI Communities site is down, right now

    It's working from here now.  (Ontario, Canada)
    I have noticed that MySQLs sites all seem down today.  
    Hmmm...looks like I'm not the only one to notice that.  
    Patrick Allen

  • Severe Site Slow-Down with multiple DNS/Sites

    Alright.. this is a bit of a strange situation, any help is appreciated because I'm pretty much out of troubleshooting options.
    Mac OS X Server hosting a few important sites and then several "redirect" sites.
    - A PHP/MySQL system
    - 2 normal PHP/MySQL websites
    - 8 Redirects (domain.bz, domain.biz, domain.name, etc..)
    The redirects are set up like so:
    - A DNS entry with a "www" alias pointing to the local machine.
    - A site with a .html file containing a meta-refresh to domain.com
    The Redirects work just fine when they are enabled, www.domain.biz goes to www.domain.com, etc.. however, the 3 sites that run on the server experience severe slow-down to the point of not even loading.
    Normally the sites are blazingly fast..
    Anyway, if the redirect site entries are disabled, the slow-down disappears.
    As an added oddity.. if Safari is experiencing the slowdown, but I cancel the site load.. the site pulls up missing images/css in varying degrees, depending on when I cancel, so it's like something is "hanging".
    There's nothing apparent in the error logs other than a report that 'there is a mismatch between the domain name and reverse DNS' etc.. 'may cause some services to not work properly'.

    Nevermind, I found the problem.
    The performance cache was enabled for the redirect sites.

  • Safari redirecting to **** site

    This started happening December 2011.
    Whenever I click on a link in one of my e-mails and the link opens on Safari, the original page I intended to see will load and stay there for a while, and then Safari will automatically redirect to one of two sites, either sexgoesmobile.com or something called VOB something. I have never visited these pages before on my phone (or anywhere else for that matter), and I have my phone constantly with me so I know that no one else has viewed these pages on my phone.
    It's not a pop-up, it's redirecting - Safari doesn't open a new page. About 10% of the times I open a certain link, Safari won't redirect and I'll be able to read what I want in peace, but the other 90% it happens.
    I've tried cleaning cookies and browser history, restarted my phone and the iOS is updated. I don't know what else to do.

    I would restore as new, i.e. without yor backup.  You'll then need to re-setup your email, reinstall your apps and resync your iTunes library.

  • When I press the down arrow on the right side of my location bar and history is displayed, how can I get it to display history from most recently accessed site on down?

    When I click the down arrow on the right side of the location bar (without having typed a full or partial URL in, I am just clicking the down arrow) a history dropdown is displayed which shows 12 website URLs that I have visited, but there does not appear to be any rhyme or reason as to what is being displayed. How can I cause this dropdown to display sites visited from the most recently accessed on down? And how can I cause more than 12 URLs to be listed in this dropdown? Why I can't I scroll down through my entire history in chronological order from most recently accessed site?

    Upgrade your browser to Firefox 8 and check
    * getfirefox.com

  • Not in Internet Explorer, but only in Firefox, I get redirected to sites that I have not selected. MS Tech Support just spent an hour running scans, concluding that the problem was not in IE. They said to contact Firefox.

    Before getting off, we ran identical searches, one in IE, one in Firefox. IE got me to Bank of America without redirecting, Firefox redirected me to a wrong site, (bank related, but wrong).

    Please see [[Searches are redirected to another site]].
    Let us know how that helps.

  • External DNS Nightmare - Site is Down - Please Help!

    Can't figure this out, I did everything as the help file stated.
    The site is completely down as of now.
    domain:
    www.elitemmagym.com
    A records created at registrar for:
    www.elitemmagym.com
    elitemmagy.com
    IP pointed on both to 192.150.2.140 (north america)
    see screenshot:
    http://cl.ly/2X2z1r430H3S0T430z2a
    Then setup domain in BC admin, chose external DNS:
    http://cl.ly/0e0W2m2r322d350m191x
    It's been over an hour.
    The site was completely down within seconds of making these changes. It was up and functioning on the old server before this.
    Pinging and tracerouting the domain name shows that no record exists:
    http://cl.ly/010A0K3P0p0W2F3I2j0K
    HELP!

    Is support off on Friday nights?

  • I have FIrefox 3.6.13 and it redirects to sites not requested; is it compromised?

    I tried to go to en,wikipedia.org/wiki/Greek_alphabet and something gets control and redirects to other sites or the last time a "rogue scanner" was stopped by AVG. The tab said "indianawars.com but AVG stopped the transmission. If I copy and past the address in Firefox usually gets there.

    If you can't fix it with the above listed scanners then you need to ask advice on one of the forums that specialize in malware removal mentioned in the <i>Popups_not_blocked</i> article.
    * http://kb.mozillazine.org/Popups_not_blocked

Maybe you are looking for

  • Upgrading to IOS8 on iTunes

    Hi all, I have an iPhone 5s and newest iPad -. If I use USB and iTunes (macbook 10.8) - can I just download ios8 1x and use it for BOTH devices(time saver...) - Or do I need to download separate one for each device-.?

  • Counting number of rows that resides in a partition/subpartiton

    Hi, I need to get the number of rows from a subpartition named (G2EDC_LOG_200704_20070407 ) in edc_log_test . Here is the below query which I am going to use to get the count of records. Also I need to know if I can combine this query with out using

  • How to configure a Network Interface?

    Hey guys. I'm very new to Solaris OS. I've now installed Solaris Express Developer Edition on my Laptop. After the restart of the installation,I find out, that my network don't work. I try to configure it with the network-admin-tool, but i can't add

  • Oracle9i JDBC Sample Applications :

    Try out the new Oracle9i JDBC Sample Applications illustrating several key features of Oracle9i JDBC Drivers including NCHAR support, OCI TAF & middle tier authentication, connection cache, and distributed transactions. Point to http://otn.oracle.com

  • Windows Media file to Quicktime

    I have a Windows Media Player file sent by a colleague. I'd like to convert it to Quicktime so I can load it into FCE-HD 3.5. and do some editing with both audio and video. Is that possible? I even tried to move the .wmv file into iTunes "movies" but